You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
archzfs/.github/workflows/release.yml

73 lines
2.0 KiB

on:
push:
branches: [master]
paths:
- '**.sh'
- '.github/workflows/**'
- 'build-container/**'
- 'packages/**'
schedule:
- cron: "4 2 * * *"
name: Release
concurrency:
group: release
cancel-in-progress: true
permissions:
contents: write
env:
RELEASE_NAME: experimental
FAILOVER_RELEASE_NAME: failover
jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: Release
steps:
- name: Checkout code
uses: actions/checkout@v4.2.1
- name: Build builder container
run: docker build -t archzfs-builder build-container
- name: Run builder container
env:
GPG_KEY_DATA: "${{ secrets.GPG_KEY_DATA }}"
GPG_KEY_ID: "${{ vars.GPG_KEY_ID }}"
run: docker run -e GPG_KEY_DATA -e GPG_KEY_ID -e FAILOVER_RELEASE_NAME --privileged --rm -v "$(pwd):/src" archzfs-builder
- name: Release mainline
uses: ncipollo/release-action@v1.15.0
with:
name: ${{ env.RELEASE_NAME }}
tag: ${{ env.RELEASE_NAME }}
commit: ${{ github.sha }}
artifacts: ./repo/*
allowUpdates: true
artifactErrorsFailBuild: true
omitBody: true
omitBodyDuringUpdate: true
removeArtifacts: true
- uses: rickstaa/action-create-tag@v1.7.2
with:
tag: ${{ env.RELEASE_NAME }}
force_push_tag: true
- name: Release failover
uses: ncipollo/release-action@v1.15.0
with:
name: ${{ env.FAILOVER_RELEASE_NAME }}
tag: ${{ env.FAILOVER_RELEASE_NAME }}
commit: ${{ github.sha }}
artifacts: ./repo/*
allowUpdates: true
artifactErrorsFailBuild: true
omitBody: true
omitBodyDuringUpdate: true
removeArtifacts: true
prerelease: true
- uses: rickstaa/action-create-tag@v1.7.2
with:
tag: ${{ env.FAILOVER_RELEASE_NAME }}
force_push_tag: true