Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Finish deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
anli5005 committed Dec 28, 2023
1 parent 6d06231 commit 5119a11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ jobs:
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
- name: Copy .htaccess
run: cp .htaccess out
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-artifact@v4
with:
name: out
path: ./out

# Deployment job
Expand All @@ -79,3 +82,7 @@ jobs:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:cis1951
- name: Copy SSH key
run: echo "${{ secrets.SSH_KEY }}" > {{ runner.temp }}/id_cis1951
- name: Upload files
run: rsync -av --delete -e "ssh -i {{ runner.temp }}/id_cis1951" out/ [email protected]:public_html
Empty file added .htaccess
Empty file.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/~cis1951",
output: "export",
}

Expand Down

0 comments on commit 5119a11

Please sign in to comment.