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