hack: Disable GitHub release creation for now.

This commit is contained in:
imterah 2024-09-20 14:53:37 -04:00
parent c5bfcbaab0
commit 3c6d7d9cd6
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37

View file

@ -12,12 +12,13 @@ on:
paths: paths:
- VERSION - VERSION
tags-ignore: tags-ignore:
- '*' - "*"
jobs: jobs:
build: build:
if: >- if: >-
github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' || github.event_name == 'push' github.event.pull_request.merged == true || github.event_name ==
'workflow_dispatch' || github.event_name == 'push'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
packages: write packages: write
@ -36,16 +37,18 @@ jobs:
with: with:
github_token: ${{secrets.GITHUB_TOKEN}} github_token: ${{secrets.GITHUB_TOKEN}}
custom_tag: ${{ steps.get_version.outputs.version }} custom_tag: ${{ steps.get_version.outputs.version }}
tag_prefix: '' tag_prefix: ""
- name: Get previous Git tag - name: Get previous Git tag
id: get_prev_version id: get_prev_version
run: echo "version=$(git describe --abbrev=0 --tags "$(git describe --abbrev=0 --tags)~") >> $GITHUB_OUTPUT" run:
echo "version=$(git describe --abbrev=0 --tags "$(git describe
--abbrev=0 --tags)~") >> $GITHUB_OUTPUT"
- name: Make sparse changelog (1/2) - name: Make sparse changelog (1/2)
uses: heinrichreimer/github-changelog-generator-action@v2.1.1 uses: heinrichreimer/github-changelog-generator-action@v2.1.1
with: with:
token: '${{secrets.GITHUB_TOKEN}}' token: "${{secrets.GITHUB_TOKEN}}"
issues: true issues: true
issuesWoLabels: true issuesWoLabels: true
pullRequests: true pullRequests: true
@ -53,7 +56,7 @@ jobs:
sinceTag: ${{steps.get_prev_version.outputs.version}} sinceTag: ${{steps.get_prev_version.outputs.version}}
addSections: >- addSections: >-
{"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}} {"documentation":{"prefix":"**Documentation:**","labels":["documentation"]}}
- name: Make sparse changelog (2/2) - name: Make sparse changelog (2/2)
run: | run: |
mv CHANGELOG.md SPARSE_CHANGELOG.md mv CHANGELOG.md SPARSE_CHANGELOG.md
@ -61,7 +64,7 @@ jobs:
- name: Make full changelog - name: Make full changelog
uses: heinrichreimer/github-changelog-generator-action@v2.1.1 uses: heinrichreimer/github-changelog-generator-action@v2.1.1
with: with:
token: '${{secrets.GITHUB_TOKEN}}' token: "${{secrets.GITHUB_TOKEN}}"
issues: true issues: true
issuesWoLabels: true issuesWoLabels: true
pullRequests: true pullRequests: true
@ -73,20 +76,10 @@ jobs:
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: >- commit_message: >-
chore: Update changelog for tag ${{steps.get_version.outputs.version}}. chore: Update changelog for tag
${{steps.get_version.outputs.version}}.
file_pattern: CHANGELOG.md file_pattern: CHANGELOG.md
- name: Release on GitHub
uses: softprops/action-gh-release@v2
with:
body_path: SPARSE_CHANGELOG.md
files: |
LICENSE
docker-compose.yml
repository: greysoh/nextnet
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.get_version.outputs.version }}
- name: Log in to GitHub container registry - name: Log in to GitHub container registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -107,4 +100,4 @@ jobs:
docker tag ghcr.io/greysoh/nextnet-lom:$(cat VERSION) ghcr.io/greysoh/nextnet-lom:latest docker tag ghcr.io/greysoh/nextnet-lom:$(cat VERSION) ghcr.io/greysoh/nextnet-lom:latest
docker push ghcr.io/greysoh/nextnet-lom:$(cat VERSION) docker push ghcr.io/greysoh/nextnet-lom:$(cat VERSION)
docker push ghcr.io/greysoh/nextnet-lom:latest docker push ghcr.io/greysoh/nextnet-lom:latest