Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbruv committed May 23, 2024
1 parent a91cc2c commit 2ab8ecc
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
env:
token: ${{ secrets.ACCESS_TOKEN }}
steps:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- uses: jetli/wasm-pack-action@v0.4.0
with:
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
version: "latest"
- name: Checkout
uses: actions/checkout@v3

- name: Build Game
run: |
cd dogfight
python3 build.py
- name: Build Client
run: |
cd client
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: client/dist # The folder the action should deploy.
#repository-name: mattbruv/ccsr
#token: ${{ secrets.ACCESS_TOKEN }}
force: true
single-commit: true

0 comments on commit 2ab8ecc

Please sign in to comment.