Skip to content

Commit

Permalink
Create one package
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Jun 20, 2021
1 parent a3604aa commit 69a5128
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,10 @@ jobs:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_PASSWORD: ${{ secrets.AZURE_CLIENT_PASSWORD }}

- name: Package steps
- name: Create steps package
run: |
cd dist/steps/hello-world-upload
zip hello-world-upload.${{ steps.version.outputs.version }}.zip *
- name: Package target
run: |
cd dist/steps/hello-world-target
zip hello-world-target.${{ steps.version.outputs.version }}.zip *
cd dist/steps
zip -r hello-world-upload.${{ steps.version.outputs.version }}.zip .
- name: Create release
id: create_release
Expand All @@ -102,16 +97,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/steps/hello-world-upload/hello-world-upload.${{ steps.version.outputs.version }}.zip
asset_path: dist/steps/hello-world-upload.${{ steps.version.outputs.version }}.zip
asset_name: hello-world-upload.${{ steps.version.outputs.version }}.zip
asset_content_type: application/zip

- name: Upload targets artifacts
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/steps/hello-world-target/hello-world-target.${{ steps.version.outputs.version }}.zip
asset_name: hello-world-target.${{ steps.version.outputs.version }}.zip
asset_content_type: application/zip

0 comments on commit 69a5128

Please sign in to comment.