42 lines (40 loc) · 1.38 KB
/
release_on_tagged_commits.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*' # Push events to matching *, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@v1
with:
version: 1.5.3
- name: Checkout code
uses: actions/checkout@v2
- name: Build Project
run: julia -e 'using Pkg; pkg"add BinaryProvider"; pkg"add BinaryBuilder"; pkg"add SHA"; Pkg.build()'
- name: Build Release Products
run: julia build_tarballs.jl
env:
BINARYBUILDER_DOWNLOADS_CACHE: "downloads"
BINARYBUILDER_AUTOMATIC_APPLE: "true"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Created a new release ${{ github.ref }}.
draft: false
prerelease: false
- name: Upload Release Assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name="${{ github.ref }}"
hub release edit $(find ./PRODUCTS -type f -name ".*" -printf "-a %p ") -m "" "$tag_name"