diff --git a/.dockerignore b/.dockerignore index 9f5f879..9397565 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ .git .gitea -utils/xor-enc.py \ No newline at end of file +dist +node_modules +utils/xor-enc.py diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..7a982f3 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,22 @@ +name: Homepage Deploy (Production) + +on: + workflow_dispatch: {} + +jobs: + deploy: + name: Deploy Homepage + runs-on: ubuntu-amd64 + needs: build + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Recreate Container + uses: https://git.ivanch.me/ivanch/pipeline-actions/ssh-deploy@main + with: + ssh_host: ${{ secrets.HOST }} + ssh_username: ${{ secrets.USERNAME }} + ssh_key: ${{ secrets.KEY }} + ssh_port: ${{ secrets.PORT }} + remote_dir: ${{ secrets.DIR }} diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index d6307e3..ecb8f1c 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -1,4 +1,4 @@ -name: Homepage Build and Deploy +name: Homepage Build and Deploy (Test) on: push: @@ -41,4 +41,4 @@ jobs: ssh_username: ${{ secrets.USERNAME }} ssh_key: ${{ secrets.KEY }} ssh_port: ${{ secrets.PORT }} - remote_dir: ${{ secrets.DIR }} + remote_dir: ${{ secrets.TEST_DIR }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1eae0cf --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist/ +node_modules/ diff --git a/404.html b/404.html index 6806c49..299dca1 100644 --- a/404.html +++ b/404.html @@ -15,6 +15,11 @@