Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
AutoAWQ
Commits
248f6418
"git@developer.sourcefind.cn:OpenDAS/torchani.git" did not exist on "9719edb102638df0d2a440657346ff7dd29c0540"
Commit
248f6418
authored
Aug 29, 2023
by
Casper
Browse files
Move creating release to start of build
parent
51f89b6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
.github/workflows/build.yaml
.github/workflows/build.yaml
+29
-12
No files found.
.github/workflows/build.yaml
View file @
248f6418
...
@@ -6,9 +6,37 @@ on:
...
@@ -6,9 +6,37 @@ 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/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
:
os
:
[
ubuntu-20.04
]
os
:
[
ubuntu-20.04
]
...
@@ -63,19 +91,8 @@ jobs:
...
@@ -63,19 +91,8 @@ jobs:
$wheel_path = Get-ChildItem dist\*.whl | ForEach-Object { $_.Name }
$wheel_path = Get-ChildItem dist\*.whl | ForEach-Object { $_.Name }
echo "wheel_path=$wheel_path" >> $env:GITHUB_ENV
echo "wheel_path=$wheel_path" >> $env: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/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
:
${{
steps.create_
release.outputs.upload_url }}
upload_url
:
${{
needs.
release.outputs.upload_url }}
asset_path
:
./dist/*.whl
asset_path
:
./dist/*.whl
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment