Skip to content

Commit

Permalink
trigger build automatically on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
mega-dean committed Nov 14, 2023
1 parent d57d041 commit 591cd14
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
name: Build and Package Artifacts

on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true

env:
OUT_DIR: hallowdale-v${{ github.event.inputs.version }}
TARBALL: hallowdale-v${{ github.event.inputs.version }}.tar.gz
push:
tags:
- 'v[0-1].[0-9]+.[0-9]+'

jobs:
build-artifacts:
Expand Down Expand Up @@ -48,10 +42,12 @@ jobs:
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-${{ env.OUT_DIR }}
name: ${{ matrix.os }}-hallowdale-${{ github.ref_name }}
path: _build/default/bin/main.exe

package-artifacts:
env:
OUT_DIR: hallowdale-${{ github.ref_name }}
needs: build-artifacts
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -81,12 +77,12 @@ jobs:
cp -r README.md $OUT_DIR
cp -r CHANGELOG.md $OUT_DIR
- name: make ${{ env.TARBALL }}
- name: make ${{ env.OUT_DIR }}.tar.gz
run: |
tar -czvf $TARBALL $OUT_DIR
tar -czvf $OUT_DIR.tar.gz $OUT_DIR
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.OUT_DIR }}
path: ${{ env.TARBALL }}
path: ${{ env.OUT_DIR }}.tar.gz
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

## [0.0.4] - 2023-11-14

- add flowers

## [0.0.3] - 2023-11-13

- show purple pen stats in pause menu for demo mode
Expand All @@ -21,6 +25,7 @@

- demo release

[0.0.4]: https://github.com/mega-dean/hallowdale/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/mega-dean/hallowdale/compare/v0.0.2...v0.0.3
[0.0.2]: https://github.com/mega-dean/hallowdale/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/mega-dean/hallowdale/releases/tag/v0.0.1

0 comments on commit 591cd14

Please sign in to comment.