Update github actions
This commit is contained in:
rodič
d845a8cdb3
revize
69a424bd08
|
@ -7,8 +7,8 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_deploy:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
concurrency:
|
concurrency:
|
||||||
|
@ -34,12 +34,22 @@ jobs:
|
||||||
- name: Add custom domain
|
- name: Add custom domain
|
||||||
run: 'touch build/CNAME && echo "explore.prgblockweek.com" >> build/CNAME'
|
run: 'touch build/CNAME && echo "explore.prgblockweek.com" >> build/CNAME'
|
||||||
|
|
||||||
- name: Deploy
|
- uses: actions/configure-pages@v3
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
- uses: actions/upload-pages-artifact@v1
|
||||||
# If you're changing the branch from main,
|
|
||||||
# also change the `main` in `refs/heads/main`
|
|
||||||
# below accordingly.
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: 'build'
|
||||||
publish_dir: ./build
|
|
||||||
|
deploy:
|
||||||
|
needs: [build]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v1
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu