diff --git a/.github/workflows/makefile.yml b/.github/workflows/build-on-push.yml similarity index 51% rename from .github/workflows/makefile.yml rename to .github/workflows/build-on-push.yml index 5562cbf..cc73c4f 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/build-on-push.yml @@ -1,4 +1,4 @@ -name: Makefile CI +name: "Build" on: push: @@ -8,11 +8,12 @@ on: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Build package - run: make all + - name: Build package + run: | + make clean + make all \ No newline at end of file diff --git a/.github/workflows/release-on-tag.yml b/.github/workflows/release-on-tag.yml new file mode 100644 index 0000000..628dcd1 --- /dev/null +++ b/.github/workflows/release-on-tag.yml @@ -0,0 +1,26 @@ +name: "Release on new tags" + +on: + push: + tags: + - "v*" + +jobs: + tagged-release: + runs-on: "ubuntu-latest" + + steps: + - uses: actions/checkout@v3 + + - name: Build package + run: | + make clean + make all + + - uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: | + LICENSE + out/purpleship.sh \ No newline at end of file