Skip to content

Commit

Permalink
Merge pull request #670 from psafont/private/paus/yangtze-bow
Browse files Browse the repository at this point in the history
Add release capabilities to the yangtze branch
  • Loading branch information
robhoes authored Mar 18, 2024
2 parents 1649dfe + 4b5e534 commit 2f5669b
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
run: sudo apt-get update

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Check whether there are unlicensed packages
run: tools/license-check.sh
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cache
cache.log
xs-opam-repo-*/
xs-opam-repo-*
12 changes: 12 additions & 0 deletions tools/print-licenses.sh
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

0 comments on commit 2f5669b

Please # to comment.