Skip to content

Commit b1707f3

Browse files
authored
Fix release workflows, again (#1214)
* Use fallback false value on test-deploy workflow * Replace `softprops/action-gh-release` with `gh`
1 parent fe9a06f commit b1707f3

File tree

3 files changed

+13
-31
lines changed

3 files changed

+13
-31
lines changed

.github/workflows/test-deploy.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -102,47 +102,29 @@ jobs:
102102
registry-url: https://registry.npmjs.org
103103
- run: npm install
104104
- run:
105-
npm ${{ inputs.release && 'publish' || 'publish --dry-run' }}
105+
npm ${{ inputs.release && 'publish' || 'publish --dry-run' }} || ${{
106+
inputs.release && 'true' || 'false' }}
106107
env:
107108
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108-
- name: install ldid
109-
run: |
109+
- run: |
110110
sudo apt install --yes libplist-dev
111111
git clone --branch v2.1.5 git://git.saurik.com/ldid.git
112112
sudo g++ -pipe -o /usr/bin/ldid ldid/ldid.cpp -I. -x c ldid/{lookup2.c,sha1.h} -lplist -lcrypto
113-
- id: build
114-
name: build
115-
run: |
116-
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
113+
- run: |
117114
cp node_modules/@npcz/magic/dist/magic.mgc assets/magic.mgc
118115
npx --yes pkg --no-bytecode --public-packages "*" --public package.json
119-
rm assets/magic.mgc
120-
for cmd in '' runner publish pr; do
121-
build/cml-linux-x64 $cmd --version
122-
done
116+
for cmd in '' runner publish pr; do build/cml-linux-x64 $cmd --version; done
123117
cp build/cml-linux{-x64,}
124118
cp build/cml-macos{-x64,}
125-
- uses: softprops/action-gh-release@v1
126-
if: inputs.release
127-
with:
128-
files: |
129-
build/cml-alpine-arm64
130-
build/cml-alpine-x64
131-
build/cml-linux-arm64
132-
build/cml-linuxstatic-arm64
133-
build/cml-linuxstatic-x64
134-
build/cml-linux-x64
135-
build/cml-linux
136-
build/cml-macos-arm64
137-
build/cml-macos-x64
138-
build/cml-macos
139-
build/cml-win-arm64.exe
140-
build/cml-win-x64.exe
119+
- if: inputs.release
120+
run:
121+
find build -type f | xargs gh release upload $(basename ${{
122+
github.head_ref }})
141123
env:
142124
GITHUB_TOKEN: ${{ secrets.TEST_GITHUB_TOKEN }}
143125
images:
144126
needs: packages
145127
secrets: inherit
146128
uses: ./.github/workflows/images.yml
147129
with:
148-
release: ${{ inputs.release }}
130+
release: ${{ inputs.release || false }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dvcorg/cml",
3-
"version": "0.18.1",
3+
"version": "0.18.0",
44
"description": "<p align=\"center\"> <img src=\"https://static.iterative.ai/img/cml/title_strip_trim.png\" width=400> </p>",
55
"author": {
66
"name": "Iterative Inc",

0 commit comments

Comments
 (0)