diff --git a/.github/workflows/deploy.yml b/.forgejo/workflows/deploy.yml similarity index 53% rename from .github/workflows/deploy.yml rename to .forgejo/workflows/deploy.yml index f0b90e9..a74ab93 100644 --- a/.github/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -1,4 +1,4 @@ -name: Deploy to GitHub Pages +name: Deploy to Pages on: push: @@ -7,11 +7,6 @@ on: branches: ['main'] workflow_dispatch: -permissions: - contents: read - pages: write - id-token: write - concurrency: group: 'pages' cancel-in-progress: false @@ -41,21 +36,8 @@ jobs: - name: Build run: npm run build - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: 'dist' - - deploy: - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - - runs-on: ubuntu-latest - - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + - name: Copy build to host pages mount + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + mkdir -p /pages + rsync -a --delete dist/ /pages/