-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only deploy to GitHub pages on release
- Loading branch information
1 parent
d96ecc5
commit f278001
Showing
2 changed files
with
27 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,6 @@ jobs: | |
path: bin/ | ||
release: | ||
name: Release | ||
env: | ||
version: ${{ github.ref_name }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
|
@@ -50,6 +48,7 @@ jobs: | |
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: "binary-*" | ||
merge-multiple: true | ||
- name: Release executables | ||
uses: softprops/action-gh-release@v2 | ||
|
@@ -58,3 +57,29 @@ jobs: | |
body: The executables for the concavum customizer ${{ github.ref_name }}. | ||
files: '*' | ||
fail_on_unmatched_files: true | ||
deploy-to-pages: | ||
name: Deploy to GitHub pages | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Install wasm-pack | ||
uses: jetli/[email protected] | ||
- name: Build using wasm-pack | ||
run: wasm-pack build customizer_wasm --target no-modules --out-dir ../web/pkg --no-typescript --no-pack | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: "web" | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |