Skip to content

Commit

Permalink
Try publishing with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rnons committed Aug 9, 2020
1 parent e17a845 commit 7f42a4d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- master
paths:
- 'packages.dhall'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v0.${{ github.run_number }}
release_name: Release v0.${{ github.run_number }}
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./packages.dhall
asset_name: packages.dhall
asset_content_type: text/plain

0 comments on commit 7f42a4d

Please sign in to comment.