Skip to content

Commit

Permalink
gh workflow iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
samifouad committed Aug 6, 2024
1 parent 65afbac commit 74f8379
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,39 @@ jobs:
needs: [linux-x64]
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
with:
path: gild-cli

- name: download all artifacts
uses: actions/download-artifact@v4

- name: Install jq
shell: bash
run: |
sudo apt-get install jq -y
- name: Prepare linux-x64's package.json and copy binary artifact
shell: bash
run: |
jq ". + {version: \"${{ env.CURRENT_TAG }}\"}" npm/gild-linux-x64/package.json > npm/gild-linux-x64/package.tmp.json && mv npm/gild-linux-x64/package.tmp.json npm/gild-linux-x64/package.json
cp ./gild-cli_${{ env.CURRENT_TAG }}_linux-x64/gild gild-cli/npm/gild-linux-x64/gild
- name: Display structure of downloaded files
run: ls -R

- name: setup npm
run: |
cd gild-cli/npm/gild
npm link
- name: install gild via npm
run: npm install @samifouad/gild

- name: sanity check
run: gild check

darwin-x64-binary-test:
needs: [darwin-x64]
runs-on: macOS-13 # should default to x64, TODO: might need to specify target some how
Expand Down Expand Up @@ -390,7 +417,7 @@ jobs:
git config --global tag.gpgSign true
git config --global user.signingkey /tmp/id_rsa
git add .
git commit -m 'automated version bump'
git commit -m 'automated version bump to ${{ github.ref_name }}'
git tag ${{ github.ref_name }} -m 'automated version bump to ${{ github.ref_name }}'
git push --follow-tags
Expand Down

0 comments on commit 74f8379

Please sign in to comment.