mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
2022 03 08 Publish zip as part of release.yml
(#4174)
* Build and upload universal zip on release.yml * Try to fix artifact upload path * try to fix wildcard * Try removing zip suffix * Try to use * regex * Try to use ? regex * try to remove path * Try to remove '-' in regex * Remove /* * Try no regex, just specify path * Adjust names * Try to fix artifact path again.. * Try different wildcard according to test * Try fix on issue * Try to wrap in string * pwd * Upgrade to v3 * Attempt to fix release * Try to upload staged directory so we don't have a zip inside of a zip * Add chmod to startup script * fixup * Remove special branch
This commit is contained in:
parent
1072078d7c
commit
23f359821f
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
@ -194,3 +194,44 @@ jobs:
|
||||
files: "D:\\a\\bitcoin-s\\bitcoin-s\\app\\bundle\\target\\windows\\bitcoin-s-bundle.msi"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
zip:
|
||||
runs-on: [ ubuntu-latest ]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup Scala
|
||||
uses: olafurpg/setup-scala@v13
|
||||
with:
|
||||
java-version: openjdk@1.17.0
|
||||
- name: 'Get Previous tag'
|
||||
id: previoustag
|
||||
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
||||
with:
|
||||
fallback: 1.0.0 # Optional fallback tag to use when no tag can be found
|
||||
- name: Build zip
|
||||
run: sbt "universal:stage"
|
||||
- name: View Artifacts
|
||||
run: ls -l app/server/target/universal/stage
|
||||
- name: pwd
|
||||
run: pwd
|
||||
- name: chmod startup script
|
||||
run: |
|
||||
chmod +x app/server/target/universal/stage/bin/bitcoin-s-server
|
||||
chmod +x app/server/target/universal/stage/bin/bitcoin-s-server.bat
|
||||
- name: Upload zip
|
||||
uses: actions/upload-artifact@v3
|
||||
env:
|
||||
pkg-version: ${{steps.previoustag.outputs.tag}}
|
||||
with:
|
||||
name: "bitcoin-s-server"
|
||||
path: app/server/target/universal/stage/
|
||||
- name: Upload if release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: "bitcoin-s-server-${{steps.previoustag.outputs.tag}}"
|
||||
files: app/server/target/universal/stage
|
||||
env:
|
||||
pkg-version: ${{steps.previoustag.outputs.tag}}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user