Skip to content

Update main.yml #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
types:
- closed

permissions:
contents: write

jobs:
build-and-package:
runs-on: ubuntu-latest
Expand All @@ -17,6 +20,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
with:
persist-credentials: true

- name: Set up JDK 17 from GraalVM
run: |
Expand All @@ -36,7 +41,11 @@ jobs:
run: echo "::set-output name=tag::$(date +'%Y%m%dT%H%M%S')"

- name: Create Git Tag
run: git tag ${{ steps.newtag.outputs.tag }} && git push origin ${{ steps.newtag.outputs.tag }}
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git tag ${{ steps.newtag.outputs.tag }}
git push origin ${{ steps.newtag.outputs.tag }}

- name: Publish Release
uses: softprops/action-gh-release@v1
Expand Down