Skip to content

Commit 69fec09

Browse files
authored
fix workflows
* Update upload_artifacts copy.yml * f * Update upload_artifacts copy.yml * Update upload_artifacts copy.yml * f * Update upload_artifacts copy.yml * Update upload_artifacts copy.yml * Update upload_artifacts copy.yml * Update upload_artifacts copy.yml * Update upload_artifacts copy.yml * fix * Create upload_artifacts copy.yml * Update upload_artifacts copy.yml * fix
1 parent 3916f1a commit 69fec09

File tree

3 files changed

+11
-74
lines changed

3 files changed

+11
-74
lines changed

.github/workflows/release.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ jobs:
8989

9090
- name: Publish release
9191
run: |
92-
tree || true
93-
tree ./packages*/ || true
94-
ls -l ./packages*/ || true
9592
# delete previous nightly release
9693
gh release delete nightly --yes || true
9794
git push --delete origin nightly || true
@@ -102,4 +99,4 @@ jobs:
10299
# https://cli.github.com/manual/gh_release_create
103100
gh release create ${{ needs.setup-env.outputs.tag_name }} --title "${{ needs.setup-env.outputs.version_name }}" \
104101
--verify-tag ${{ needs.setup-env.outputs.prerelease }} --generate-notes --target $GITHUB_SHA \
105-
./packages/*
102+
./packages/*/*

.github/workflows/upload_artifacts copy.yml

-66
This file was deleted.

.github/workflows/upload_artifacts.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
KEY_BASE64: ${{ secrets.KEY_BASE64 }}
5050
run: |
5151
echo $KEY_BASE64 | base64 --decode > app/key.jks
52-
52+
53+
# todo: specifie arch
5354
- name: Build apk
5455
env:
5556
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
@@ -59,10 +60,15 @@ jobs:
5960
./gradlew assembleRelease
6061
6162
- run: |
62-
mv app/build/outputs/apk/release/app-release.apk packages/gitnote-release-${{ github.event.inputs.version }}-arm64-v8a.apk
63+
mkdir -p packages
64+
65+
# warning: do not use github.event syntax here
66+
# https://stackoverflow.com/questions/71458189/github-action-workflow-call-does-not-use-up-to-date-input-values
67+
mv app/build/outputs/apk/release/app-release.apk packages/gitnote-release-${{ inputs.version }}.apk
68+
69+
# when downloading, this will be: pathdest/name/filename
6370
- uses: actions/upload-artifact@v4
6471
with:
65-
# todo: fix input (it is not take into account some how, but there is an input)
66-
# todo: dynamic arch
72+
name: releases
6773
path: packages/*
6874
if-no-files-found: error

0 commit comments

Comments
 (0)