Skip to content

Commit

Permalink
fix: gh actions (#4)
Browse files Browse the repository at this point in the history
* gh: linux whl bundle attempt

* fix: checkout w/ recursive submodules

* change branchn

* tweak upload assets

* wheel upload attempt 3

* fix: artifact name collision

* fix wheel release upload

* fix: wheel release dirs

* we go again

* i hate gh actions

* try use gh cli

* fix: rename addon zip + move to main branch

* fix: remove debug ls

* fix: rename action
  • Loading branch information
alanpq authored Aug 16, 2024
1 parent fe1d5bc commit 73868ee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release on Merge To Master
name: Release
on:
push:
branches:
Expand All @@ -9,6 +9,7 @@ jobs:
needs: [bindings-linux]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt
Expand All @@ -31,8 +32,14 @@ jobs:
with:
upload_url: ${{ steps.release.outputs.upload_url }}
asset_path: dist/lol-blender-${{steps.release.outputs.tag_name}}.zip
asset_name: lol-blender-${{steps.release.outputs.tag_name}}.zip
asset_name: addon-lol-blender-${{steps.release.outputs.tag_name}}.zip
asset_content_type: application/zip
- uses: actions/download-artifact@v4
- name: Upload Release Wheels
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
gh release upload ${{steps.release.outputs.tag_name}} ./wheels*/*.whl
bindings-linux:
runs-on: ubuntu-latest
Expand All @@ -41,6 +48,8 @@ jobs:
target: [x86_64, i686]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v4
with:
python-version: 3.9
Expand All @@ -52,11 +61,10 @@ jobs:
manylinux: auto
args: --release --out dist/ -m bindings/Cargo.toml
- name: Upload wheels
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
uses: actions/upload-artifact@v4
with:
asset_paths: '["./dist/*.whl"]'
name: wheels-linux-${{matrix.target}}
path: dist/*.whl
permissions:
contents: write
pull-requests: read
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"editor.formatOnSaveMode": "file",
"editor.formatOnSave": true
"editor.formatOnSave": true,
"nixEnvSelector.nixFile": "${workspaceFolder}/shell.nix"
}

0 comments on commit 73868ee

Please sign in to comment.