Commit 87c59401 authored by Casper's avatar Casper
Browse files

Move release to end

parent ac36d82e
...@@ -6,36 +6,9 @@ on: ...@@ -6,36 +6,9 @@ on:
- "v*" - "v*"
jobs: jobs:
release:
# Retrieve tag and create release
name: Create Release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Extract branch info
shell: bash
run: |
echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: "actions/github-script@v6"
env:
RELEASE_TAG: ${{ env.release_tag }}
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
const script = require('.github/workflows/scripts/github_create_release.js')
await script(github, context, core)
build_wheels: build_wheels:
name: Build AWQ name: Build AWQ
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: release
strategy: strategy:
matrix: matrix:
...@@ -87,12 +60,25 @@ jobs: ...@@ -87,12 +60,25 @@ jobs:
$env:TORCH_CUDA_ARCH_LIST = '8.0 8.6 8.9 9.0+PTX' $env:TORCH_CUDA_ARCH_LIST = '8.0 8.6 8.9 9.0+PTX'
python setup.py sdist bdist_wheel python setup.py sdist bdist_wheel
- name: Extract branch info
shell: bash
run: |
echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
$wheel_path = Get-ChildItem dist\*.whl | ForEach-Object { $_.Name } - name: Create Release
echo "wheel_path=$wheel_path" >> $env:GITHUB_ENV id: create_release
uses: "actions/github-script@v6"
env:
RELEASE_TAG: ${{ env.release_tag }}
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
const script = require('.github/workflows/scripts/github_create_release.js')
await script(github, context, core)
- name: Upload Assets - name: Upload Assets
uses: shogo82148/actions-upload-release-asset@v1 uses: shogo82148/actions-upload-release-asset@v1
with: with:
upload_url: ${{ needs.release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/*.whl asset_path: ./dist/*.whl
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment