[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
|
||||
# and submitted pull request. This can help catch issues that only occur on
|
||||
# certain platforms or Java versions, and provides a first line of defence
|
||||
# against bad commits.
|
||||
|
||||
name: build
|
||||
on: [pull_request, push]
|
||||
name: Build ExploreCraft Tweaks
|
||||
#on: [pull_request, push]
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
|
@ -42,12 +42,10 @@ jobs:
|
|||
done
|
||||
shell: bash
|
||||
|
||||
- name: Upload artifacts to release
|
||||
uses: actions/upload-release-asset@v1
|
||||
- name: Publish release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
upload_url: ${{ github.event.release.upload_url }}
|
||||
asset_path: release_artifacts/*
|
||||
asset_name: artifact.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
env:
|
||||
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
||||
files: |-
|
||||
release_artifacts/**
|
||||
api_key: '${{secrets.PUBLISH_TOKEN}}'
|
||||
|
||||
|
|
Loading…
Reference in a new issue