mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-25 15:16:53 +01:00
[SC64][BUILD] Replaced website publish action
This commit is contained in:
parent
a12641bf39
commit
5b880fc052
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@ -130,17 +130,31 @@ jobs:
|
|||||||
sw/deployer/package/${{ matrix.package-name }}-${{ steps.version.outputs.replaced }}.${{ matrix.package-extension }}
|
sw/deployer/package/${{ matrix.package-name }}-${{ steps.version.outputs.replaced }}.${{ matrix.package-extension }}
|
||||||
|
|
||||||
publish-website:
|
publish-website:
|
||||||
runs-on: ubuntu-latest
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Download SummerCart64 repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Setup GitHub pages
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: actions/configure-pages@v4
|
||||||
if: github.ref == 'refs/heads/main'
|
|
||||||
|
- name: Upload website artifact
|
||||||
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
path: ./web
|
||||||
publish_dir: ./web
|
|
||||||
cname: summercart64.dev
|
- name: Publish website from uploaded artifact
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
|
Loading…
Reference in New Issue
Block a user