diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a51117d..8d0cbf3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file + # (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 }} \ No newline at end of file