Skip to content

Commit

Permalink
chore: Add GitHub Actions workflow to create releases
Browse files Browse the repository at this point in the history
  • Loading branch information
amengus87 committed Aug 28, 2024
1 parent efaba07 commit 154a0a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
gradle-version: 8.7

# Create Release Semver
# Create Tag Semver
- name: Get the current branch name
id: get_branch
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
fi
- name: Display Version Incrementer
run: echo "Version Incrementer == ${{ env.versionIncrementer }}"
- name: Create Release
- name: Create Tag
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'isontheline/vscode-sysmon'
Expand All @@ -75,8 +75,8 @@ jobs:
npm run vscode:prepublish
npm run package
# Push Release
- name: Push Release
# Push Tag
- name: Push Tag
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'isontheline/vscode-sysmon'
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
steps:
- 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 154a0a9

Please sign in to comment.