mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-12-13 14:33:21 +00:00
chore: update ci (#47)
This commit is contained in:
56
.github/workflows/release.yml
vendored
56
.github/workflows/release.yml
vendored
@@ -1,50 +1,26 @@
|
||||
name: Create release and upload assets
|
||||
name: release-please
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
branches: [ 'master' ]
|
||||
|
||||
env:
|
||||
# Use invalid OSB key to packages with ZIP support but without valid build in password
|
||||
OSB_KEY: "invalid"
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linuxbuild:
|
||||
release-please:
|
||||
name: run release-please
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- run: make linux-package
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
- uses: actions/create-github-app-token@v2
|
||||
id: app-token
|
||||
with:
|
||||
draft: 'true'
|
||||
make_latest: 'true'
|
||||
generate_release_notes: 'true'
|
||||
files: |
|
||||
*linux.tar.gz
|
||||
windowsbuild:
|
||||
runs-on: windows-latest
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
- run: make win-package
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
app-id: ${{ secrets.RELEASE_APP_ID }}
|
||||
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
|
||||
owner: ${{ github.repository_owner }}
|
||||
- uses: googleapis/release-please-action@v4
|
||||
with:
|
||||
draft: 'true'
|
||||
make_latest: 'true'
|
||||
generate_release_notes: 'true'
|
||||
files: |
|
||||
*win64.zip
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
Reference in New Issue
Block a user