Skip to content

Commit

Permalink
Deploy to GitHub pages in manual workflow (resolves NiklasEi#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasEi committed Mar 27, 2022
1 parent 67af227 commit fb164fb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/deploy-page.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: deploy-github-page

on:
workflow_dispatch:

jobs:
build-web:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install pkg-config libx11-dev libasound2-dev libudev-dev
- name: Install trunk
uses: jetli/[email protected]
with:
version: 'latest'
- name: Add wasm target
run: |
rustup target add wasm32-unknown-unknown
- name: Build Release
run: |
trunk build --release --public-url ""
- name: optimize Wasm
uses: NiklasEi/wasm-opt-action@v2
with:
file: dist/*.wasm
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
5 changes: 0 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,3 @@ jobs:
asset_name: ${{ env.GAME_EXECUTABLE_NAME }}_${{ steps.tag.outputs.tag }}_web.zip
tag: ${{ github.ref }}
overwrite: true
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist

0 comments on commit fb164fb

Please sign in to comment.