From 3d39821a2f08fc06dc5909154864c3ad57c7e324 Mon Sep 17 00:00:00 2001 From: Michael McAllister Date: Thu, 8 Feb 2024 21:08:39 +1100 Subject: [PATCH] Add GitHub Actions --- .github/workflows/main.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yaml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..7affa8a --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,24 @@ +--- +name: Compile Doomfire +on: + push: + tags: + - v* +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + - name: Compile + run: make wasm + - name: Upload Artefact + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + html/main.wasm