[c] update both workflows
This commit is contained in:
parent
cb6a129b40
commit
d373680665
2 changed files with 12 additions and 15 deletions
|
@ -1,10 +1,9 @@
|
||||||
# Automatically build the project and run any configured tests for every push
|
name: Build ExploreCraft Tweaks
|
||||||
# and submitted pull request. This can help catch issues that only occur on
|
#on: [pull_request, push]
|
||||||
# certain platforms or Java versions, and provides a first line of defence
|
on:
|
||||||
# against bad commits.
|
push:
|
||||||
|
tags:
|
||||||
name: build
|
- '*'
|
||||||
on: [pull_request, push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -42,12 +42,10 @@ jobs:
|
||||||
done
|
done
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Upload artifacts to release
|
- name: Publish release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: https://gitea.com/actions/release-action@main
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
files: |-
|
||||||
asset_path: release_artifacts/*
|
release_artifacts/**
|
||||||
asset_name: artifact.tar.gz
|
api_key: '${{secrets.PUBLISH_TOKEN}}'
|
||||||
asset_content_type: application/gzip
|
|
||||||
env:
|
|
||||||
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
|
||||||
|
|
Loading…
Reference in a new issue