Skip to content

dev release

dev release #12

Workflow file for this run

name: Dev release
on:
push:
branches: [ dev ]
paths-ignore:
- 'README.md'
- 'LICENSE'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
release-prefix: dev-release
jobs:
jar:
uses: ./.github/workflows/workflow-jar.yml
secrets: inherit
with:
jar-name: tp2intervals
jar-artifact-name: tp2intervals-jar
docker-image:
needs:
- jar
uses: ./.github/workflows/workflow-docker-image.yml
with:
jar-name: tp2intervals
jar-artifact-name: tp2intervals-jar
image-name: tp2intervals
electron:
needs:
- jar
strategy:
matrix:
environment:
- os: ubuntu-latest
- os: macos-latest
- os: windows-latest
uses: ./.github/workflows/workflow-electron.yml
with:
jar-name: tp2intervals
jar-artifact-name: tp2intervals-jar
os: ${{ matrix.environment.os }}
dev-release:
needs:
- jar
- electron
runs-on: ubuntu-latest
steps:
- id: set_tag_name
run: echo "tag_name=${{env.release-prefix}}-$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Show me what you got
run: ls artifacts
- name: Create tag
run: |
git tag ${{ steps.set_tag_name.outputs.tag_name }}
git push --tags
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.set_tag_name.outputs.tag_name }}
skipIfReleaseExists: true
prerelease: true
artifactErrorsFailBuild: true
artifacts: artifacts/**/*