Skip to content

Commit

Permalink
feat: add test step
Browse files Browse the repository at this point in the history
  • Loading branch information
scheying committed Oct 2, 2023
1 parent 183d1f9 commit 4229190
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
on:
push:
tags:
- 'v*'
- '!v0'
branches:
- main

name: Create Release

Expand All @@ -12,36 +11,14 @@ jobs:
runs-on: ubuntu-latest # run on hosted runner, because it's a public repo
permissions:
contents: write

env:
rolling_tag: v0
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: google-github-actions/release-please-action@v3
with:
ref: ${{ github.ref }}
release-type: simple
package-name: gh-action-baseproject

- name: Retrieve annotated tags
run: |
git fetch --tags --force
- name: Get tag annotation
uses: ericcornelissen/git-tag-annotation-action@v2
id: tag-data

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
name: Release ${{ github.ref }}
body: |
${{ steps.tag-data.outputs.git-tag-annotation }}
draft: false
prerelease: false

- name: Move rolling tag
run: |
git tag -d ${{ env.rolling_tag }} && git push --delete origin ${{ env.rolling_tag }}
git tag ${{ env.rolling_tag }} && git push origin ${{ env.rolling_tag }}

0 comments on commit 4229190

Please sign in to comment.