Skip to content

Commit

Permalink
Merge pull request #103 from antoniovazquezblanco/releases
Browse files Browse the repository at this point in the history
Add automatic releases
  • Loading branch information
BatchDrake committed Jan 13, 2024
2 parents b041a4f + 72590c3 commit d477aa2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/actions/package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,28 @@ runs:

- name: Upload DEB artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-deb.zip
name: sigutils-linux-deb.zip
path: build/dist/*.deb

- name: Upload TGZ artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: linux-tgz.zip
name: sigutils-linux-tgz.zip
path: build/dist/*.tar.gz

- name: Upload TGZ artifact
if: runner.os == 'MacOS'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos-tgz.zip
name: sigutils-macos-tgz.zip
path: build/dist/*.tar.gz

- name: Upload ZIP artifact
if: runner.os == 'Windows'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-zip.zip
name: sigutils-windows-zip.zip
path: build/dist/*.zip
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,37 @@ jobs:
uses: "./.github/actions/package"
with:
generators: ZIP

release:
runs-on: "ubuntu-latest"
needs:
- build-linux
- build-macos
- build-windows

steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"

- name: Download binaries
uses: actions/download-artifact@v4

- name: Release nightly
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Sigutils nightly (${{steps.date.outputs.date}})"
files: sigutils*/*

- name: Release stable
if: contains(github.ref, 'refs/tags/v')
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "Sigutils ${{github.ref_name}}"
files: sigutils*/*

0 comments on commit d477aa2

Please sign in to comment.