Skip to content

Commit

Permalink
Merge pull request #28 from 34N0/distribution
Browse files Browse the repository at this point in the history
release action
  • Loading branch information
wandapeter authored Jan 13, 2024
2 parents 20aed1f + 8602f34 commit 5291336
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
name: Release

permissions:
contents: write

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Release
- v[0-9]+.*

jobs:
build:
name: Create Release
create-release:
runs-on: ubuntu-latest
steps:
- run: sudo apt install libpam-dev clang libclang-dev
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (optional) Path to changelog.
changelog: CHANGELOG.md
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
needs: create-release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
- run: sudo apt install libpam-dev clang libclang-dev
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: false
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: ...
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5291336

Please sign in to comment.