Skip to content

Commit f7f8212

Browse files
authored
Merge pull request #22 from isontheline/staging
chore: Update GitHub Actions workflow to create releases
2 parents 3d98092 + 2e3ab86 commit f7f8212

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
concurrency:
55
group: ${{ github.workflow }}-${{ github.ref }}
66
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
7+
permissions:
8+
contents: write
79
jobs:
810
build:
911
runs-on: ubuntu-latest
@@ -65,7 +67,7 @@ jobs:
6567
run: gradle createRelease -Prelease.versionIncrementer=${{ env.versionIncrementer }}
6668

6769
# Set Project Version
68-
- name: Set Frontend Version
70+
- name: Set Project Version
6971
run: npm version from-git --no-git-tag-version
7072

7173
# Build Project
@@ -80,4 +82,18 @@ jobs:
8082
if: |
8183
github.ref == 'refs/heads/main' &&
8284
github.repository == 'isontheline/vscode-sysmon'
83-
run: gradle pushRelease
85+
run: gradle pushRelease
86+
87+
# Create Release
88+
- name: Create release
89+
if: |
90+
github.ref == 'refs/heads/main' &&
91+
github.repository == 'isontheline/vscode-sysmon'
92+
env:
93+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
run: |
95+
tag=$(git describe --tags --abbrev=0)
96+
gh release create "$tag" \
97+
--repo="$GITHUB_REPOSITORY" \
98+
--title="${tag#v}" \
99+
--generate-notes

.github/workflows/create_release.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)