[d] delete old publish action
Some checks failed
Build ExploreCraft Tweaks / build (21) (push) Failing after 1m54s
Some checks failed
Build ExploreCraft Tweaks / build (21) (push) Failing after 1m54s
This commit is contained in:
parent
d373680665
commit
17c796a1ab
2 changed files with 7 additions and 51 deletions
|
@ -39,3 +39,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ec-tweaks-build
|
name: ec-tweaks-build
|
||||||
path: build/libs/
|
path: build/libs/
|
||||||
|
|
||||||
|
- name: ⏫ Publish release
|
||||||
|
uses: actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
build/libs/**
|
||||||
|
api_key: '${{secrets.PUBLISH_TOKEN}}'
|
||||||
|
|
|
@ -1,51 +0,0 @@
|
||||||
name: Release Artifacts
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [published]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
upload-artifacts:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: ⏬ Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Get the latest successful build
|
|
||||||
id: build
|
|
||||||
uses: https://github.com/actions/github-script@v6
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const { owner, repo } = context.repo;
|
|
||||||
const workflowRuns = await github.actions.listWorkflowRunsForRepo({
|
|
||||||
owner,
|
|
||||||
repo,
|
|
||||||
status: 'success',
|
|
||||||
event: 'push',
|
|
||||||
});
|
|
||||||
const latestRun = workflowRuns.data.workflow_runs[0];
|
|
||||||
return latestRun;
|
|
||||||
|
|
||||||
- name: Download build artifacts
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
run-id: ${{ steps.build.outputs.id }}
|
|
||||||
|
|
||||||
- name: Create a directory for artifacts
|
|
||||||
run: mkdir -p release_artifacts
|
|
||||||
|
|
||||||
- name: Extract artifacts
|
|
||||||
run: |
|
|
||||||
for artifact in $(ls *.tar.gz); do
|
|
||||||
tar -xzf $artifact -C release_artifacts
|
|
||||||
done
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Publish release
|
|
||||||
uses: https://gitea.com/actions/release-action@main
|
|
||||||
with:
|
|
||||||
files: |-
|
|
||||||
release_artifacts/**
|
|
||||||
api_key: '${{secrets.PUBLISH_TOKEN}}'
|
|
||||||
|
|
Loading…
Reference in a new issue