-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #670 from psafont/private/paus/yangtze-bow
Add release capabilities to the yangtze branch
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
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
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,30 @@ | ||
name: Create release from tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '6.*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install opam | ||
run: sudo apt-get install -y opam | ||
|
||
- name: Collect licenses | ||
run: ./tools/print-licenses.sh > licenses.txt | ||
|
||
- name: Archive upstream libraries | ||
run: make archive | ||
|
||
- name: Create release ${{ github.ref_name }} | ||
run: | | ||
gh release create ${{ github.ref_name }} --repo ${{ github.repository }} --generate-notes \ | ||
licenses.txt xs-opam-repo-${{ github.ref_name }}.tar.gz | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
cache | ||
cache.log | ||
xs-opam-repo-*/ | ||
xs-opam-repo-* |
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,12 @@ | ||
#! /bin/bash | ||
# emit licenses for toolstack packages, needs to be run at the root of the | ||
# project | ||
|
||
set -e | ||
|
||
for file in packages/{upstream,xs}/*/opam; | ||
do | ||
name=$(basename ${file%%.*}) | ||
license=$(grep 'license: ' $file | awk -F ': ' '{print $2}') | ||
echo $name: $license | ||
done |