forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add temporary build workflow for AOSM extension (#4)
* Add temporary build workflow for AOSM extension * Add Releaser to maintain a release with the latest build in a consistent place
- Loading branch information
1 parent
057ef05
commit 715c925
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
on: | ||
push: | ||
branches: | ||
- add-aosm-extension | ||
|
||
jobs: | ||
build_aosm: | ||
runs-on: ubuntu-latest | ||
container: mcr.microsoft.com/azure-cli/tools:latest | ||
permissions: write-all | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Build AOSM Wheel | ||
run: | | ||
# Pretend we have a valid git repo to satisfy azdev. | ||
mkdir .git | ||
azdev setup -r . | ||
azdev extension build aosm | ||
- name: Upload AOSM Wheel | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: aosm-extension | ||
path: dist/*.whl | ||
- name: Update Release | ||
uses: pyTooling/Actions/releaser@r0 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: | | ||
dist/*.whl | ||
tag: aosm-extension |