Skip to content

Commit

Permalink
Update build_and_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SilianZ authored Jun 1, 2024
1 parent 69785e9 commit 7e99cff
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ jobs:
ref: master
- name: Set env
run: |
echo "SHORT_SHA=${GITHUB_SHA:0:6}" >> $GITHUB_ENV
echo "RELEASE_VERSION=$(<VERSION)" >> $GITHUB_ENV
- name: Set release name
run: echo "RELEASE_NAME=Release ${{ env.RELEASE_VERSION }}+${{ env.SHORT_SHA }}" >> $GITHUB_ENV
- name: Push a new tag
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag "${{ env.RELEASE_VERSION }}"
git push origin --tags
- uses: ncipollo/release-action@v1
- uses: actions/setup-node@v3
with:
tag: ${{ env.RELEASE_VERSION }}
name: ${{ env.RELEASE_NAME }}
generateReleaseNotes: true
node-version: 16.x
- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
build:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7e99cff

Please sign in to comment.