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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -7,11 +7,6 @@ on:
|
||||||
branches: ['main']
|
branches: ['main']
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: 'pages'
|
group: 'pages'
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
@ -41,21 +36,8 @@ jobs:
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Copy build to host pages mount
|
||||||
uses: actions/upload-pages-artifact@v3
|
|
||||||
with:
|
|
||||||
path: 'dist'
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
environment:
|
run: |
|
||||||
name: github-pages
|
mkdir -p /pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
rsync -a --delete dist/ /pages/
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
id: deployment
|
|
||||||
uses: actions/deploy-pages@v4
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue