Skip to content

Commit

Permalink
Merge pull request #22 from isontheline/staging
Browse files Browse the repository at this point in the history
chore: Update GitHub Actions workflow to create releases
  • Loading branch information
amengus87 committed Aug 28, 2024
2 parents 3d98092 + 2e3ab86 commit f7f8212
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,7 +67,7 @@ jobs:
run: gradle createRelease -Prelease.versionIncrementer=${{ env.versionIncrementer }}

# Set Project Version
- name: Set Frontend Version
- name: Set Project Version
run: npm version from-git --no-git-tag-version

# Build Project
Expand All @@ -80,4 +82,18 @@ jobs:
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'isontheline/vscode-sysmon'
run: gradle pushRelease
run: gradle pushRelease

# Create Release
- name: Create release
if: |
github.ref == 'refs/heads/main' &&
github.repository == 'isontheline/vscode-sysmon'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag=$(git describe --tags --abbrev=0)
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${tag#v}" \
--generate-notes
21 changes: 0 additions & 21 deletions .github/workflows/create_release.yml

This file was deleted.

0 comments on commit f7f8212

Please sign in to comment.