Update Release Workflow
Some checks failed
Some checks failed
This commit is contained in:
parent
0d99cffb34
commit
ec565523b3
1 changed files with 6 additions and 8 deletions
|
@ -29,15 +29,12 @@ jobs:
|
|||
-
|
||||
name: Compiling To Linux Target
|
||||
run: cargo build -r
|
||||
-
|
||||
name: Rename Build Output
|
||||
run: mv ./target/release/ascendance-of-a-bookworm-bot ./bookworm-bot-linux-amd64
|
||||
-
|
||||
name: Uploading Build Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: bookworm-bot-linux-amd64
|
||||
path: ./bookworm-bot-linux-amd64
|
||||
path: ./target/release/ascendance-of-a-bookworm-bot
|
||||
if-no-files-found: error
|
||||
|
||||
upload-release:
|
||||
|
@ -48,20 +45,21 @@ jobs:
|
|||
-
|
||||
name: Downloading All Build Artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: ./
|
||||
-
|
||||
name: Debug Workflow
|
||||
run: |
|
||||
ls -lap ./
|
||||
ls -lap ${{steps.download.outputs.download-path}}
|
||||
ls -lap ./bookworm-bot-linux-amd64
|
||||
ls -lap ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64
|
||||
pwd
|
||||
-
|
||||
name: Upload Artifacts As Generic Packages
|
||||
run: |
|
||||
echo 'curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
||||
--upload-file ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \
|
||||
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/bookworm-bot-linux-amd64'
|
||||
curl -v --user ${{ secrets.FORGEJO_USERNAME }}:${{ secrets.FORGEJO_TOKEN }} \
|
||||
--upload-file /workspace/${{ secrets.FORGEJO_USERNAME }}/${{ github.event.repository.name }}/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \
|
||||
--upload-file ./bookworm-bot-linux-amd64/bookworm-bot-linux-amd64/bookworm-bot-linux-amd64 \
|
||||
https://forgejo.neshweb.net/api/packages/${{ secrets.FORGEJO_USERNAME }}/generic/${{ github.event.repository.name }}/${{ github.ref_name }}/bookworm-bot-linux-amd64
|
||||
#-
|
||||
# name: Release New Version
|
||||
|
|
Loading…
Reference in a new issue