mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
Update publishing.yml
This commit is contained in:
parent
a94729afb7
commit
bb4fa39d12
15
.github/workflows/publishing.yml
vendored
15
.github/workflows/publishing.yml
vendored
@ -54,15 +54,24 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Take a gander at versions.txt to get updated information
|
||||||
|
run: |
|
||||||
|
IFS=" - " read -ra PARTS <<< "$(head -n 1 versions.txt)"
|
||||||
|
echo "VERSION=${PARTS[0]}" >> $GITHUB_ENV
|
||||||
|
echo "DESCRIPTION=${PARTS[1]}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: v0.0.0-${{ github.run_number }}
|
tag_name: v${{ env.VERSION }}
|
||||||
release_name: Release v0.0.0-${{ github.run_number }}
|
release_name: Release v${{ env.VERSION }}
|
||||||
body: Draft release for version v0.0.0-${{ github.run_number }}
|
body: Draft release for version v${{ env.VERSION }} \n ${{ env.DESCRIPTION }}
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
- name: Download all workflow run artifacts
|
- name: Download all workflow run artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user