Skip to content

Commit

Permalink
Yml test: test uploading release artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocsomor committed Jul 16, 2020
1 parent 2b06d07 commit 2b3c262
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 2b3c262

Please sign in to comment.