Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardopinosio committed Feb 1, 2024
1 parent 4b325ed commit 464e9b0
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
# https://docs.github.com/en/actions

name: Releases
name: Create release

on:
on:
push:
tags:
- '*'
- v*

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
release:
name: Release pushed tag
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
artifacts: "release.tar.gz,foo/*.txt"
bodyFile: "body.md"
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes

0 comments on commit 464e9b0

Please sign in to comment.