-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Yml test: test uploading release artifact
- Loading branch information
1 parent
2b06d07
commit 2b3c262
Showing
1 changed file
with
33 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,33 @@ | ||
name: CI and Release | ||
|
||
on: | ||
push: | ||
branches: [ yml-test-* ] | ||
|
||
# Recommended here: https://github.com/bazelbuild/bazelisk/issues/88#issuecomment-625178467 | ||
env: | ||
BAZELISK_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build release | ||
run: echo ${{ github.ref }} > ./out.txt | ||
shell: bash | ||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
- name: Upload release artifact | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./out.txt | ||
asset_name: out.txt | ||
# Media type from: https://www.iana.org/assignments/media-types/media-types.xhtml#application | ||
asset_content_type: text/plain |