Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: change build-native-and-release.yml github action so that function.zip is uploaded to github packages instead of attachment to release (βœ“ Sandbox Passed) #235

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions .github/workflows/build-native-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
- name: Increment Tag Version
id: tag_version
uses: mathieudutour/[email protected]

- name: Upload Artifact function.zip
uses: actions/upload-artifact@v2
with:
name: function
path: build/function.zip
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.extract_version.outputs.version }}
Expand Down Expand Up @@ -67,13 +73,26 @@ jobs:
asset_path: build/function.zip
asset_name: function.zip
asset_content_type: application/zip
publish-to-github-packages:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Upload sam.jvm.yaml
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Download Artifact function.zip
uses: actions/download-artifact@v2
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/sam.native.yaml
asset_name: sam.native.yaml
asset_content_type: text/yaml
name: function

- name: Setup Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'

- name: Publish to Github Packages
uses: eskatos/gradle-command-action@v2
with:
arguments: publish
# Step removed: Upload sam.jvm.yaml
Loading