Forgejo deploy
This commit is contained in:
parent
7e0f3d0303
commit
c2a9d0a826
1 changed files with 6 additions and 24 deletions
|
|
@ -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/
|
||||
Loading…
Add table
Add a link
Reference in a new issue