Correct formatting
This commit is contained in:
54
.github/workflows/release.yml
vendored
54
.github/workflows/release.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Get tag name
|
- name: Get tag name
|
||||||
uses: olegtarasov/get-tag@v2.1
|
uses: olegtarasov/get-tag@v2.1
|
||||||
id: tagName
|
id: tagName
|
||||||
- name: Validate semver
|
- name: Validate semver
|
||||||
@@ -47,32 +47,32 @@ jobs:
|
|||||||
id: changelog_reader
|
id: changelog_reader
|
||||||
uses: mindsers/changelog-reader-action@v2
|
uses: mindsers/changelog-reader-action@v2
|
||||||
with:
|
with:
|
||||||
version: 'Unreleased'
|
version: 'Unreleased'
|
||||||
path: ./CHANGELOG.md
|
path: ./CHANGELOG.md
|
||||||
- name: Release on GitHub
|
- name: Release on GitHub
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
id: ghRelease
|
id: ghRelease
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.changelog_reader.outputs.changes }}
|
body: ${{ steps.changelog_reader.outputs.changes }}
|
||||||
name: ${{ steps.tagName.outputs.tag }}
|
name: ${{ steps.tagName.outputs.tag }}
|
||||||
files: |
|
files: |
|
||||||
build/libs/*.jar
|
build/libs/*.jar
|
||||||
- name: Release on CurseForge
|
- name: Release on CurseForge
|
||||||
run: ./gradlew curseforge
|
run: ./gradlew curseforge
|
||||||
env:
|
env:
|
||||||
RELEASE: ${{ steps.tagName.outputs.tag }}
|
RELEASE: ${{ steps.tagName.outputs.tag }}
|
||||||
CHANGELOG: ${{ steps.changelog_reader.outputs.changes }}
|
CHANGELOG: ${{ steps.changelog_reader.outputs.changes }}
|
||||||
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|
||||||
# This is necessary because the Discord action doesn't support GH actions variable expansion?
|
# This is necessary because the Discord action doesn't support GH actions variable expansion?
|
||||||
- name: Set release URL
|
- name: Set release URL
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_URL=${{ steps.ghRelease.outputs.url }}" >> $GITHUB_ENV
|
echo "RELEASE_URL=${{ steps.ghRelease.outputs.url }}" >> $GITHUB_ENV
|
||||||
- name: Notify Discord
|
- name: Notify Discord
|
||||||
uses: Ilshidur/action-discord@0.3.2
|
uses: Ilshidur/action-discord@0.3.2
|
||||||
with:
|
with:
|
||||||
args: 'Refined Storage {{ GIT_TAG_NAME }} has been released! {{ RELEASE_URL }}'
|
args: 'Refined Storage {{ GIT_TAG_NAME }} has been released! {{ RELEASE_URL }}'
|
||||||
env:
|
env:
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
- name: Notify Twitter
|
- name: Notify Twitter
|
||||||
uses: ethomson/send-tweet-action@v1
|
uses: ethomson/send-tweet-action@v1
|
||||||
with:
|
with:
|
||||||
|
Reference in New Issue
Block a user