Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBoatyMcBoatFace committed Aug 10, 2023
1 parent dc4c4cb commit 4b3560d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/auto-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ jobs:
- name: Print new version
run: echo "New version is ${{ steps.version.outputs.version }}"

- name: Tag commit with new version
- name: Configure Git user
run: |
git tag ${{ steps.version.outputs.version_tag }}
git push origin --tags
git config user.name "${{ secrets.BOT_NAME }}"
git config user.email "${{ secrets.BOT_EMAIL }}"
- name: Tag the new version
run: |
git tag v${{ steps.version.outputs.version }}
git push origin v${{ steps.version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
28 changes: 16 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# .github/workflows/release.yml
# Creates new release and updates sentry
# https://github.com/marketplace/actions/sentry-release
# https://github.com/marketplace/actions/create-release
# .github/workflows/release.yml
# Creates new release and updates sentry
name: Create Release

on:
create:
push:
tags:
- 'v*'
- '*'



jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
uses: ncipollo/release-action@v1.12.0
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Auto-generated release from ${{ github.ref }}
draft: false
prerelease: false
artifacts: ""
body: "Auto-generated release from ${{ github.ref }}"
name: "Release ${{ github.ref }}"
tag: "${{ github.ref }}"
token: ${{ secrets.BOT_TOKEN }}

configure-sentry:
name: Configure Sentry
Expand Down

0 comments on commit 4b3560d

Please sign in to comment.