Skip to content

v0.1.14

v0.1.14 #28

Workflow file for this run

name: license collect
on:
release:
types: [created]
env:
GOPRIVATE: github.com/seqsense/*
jobs:
go-license:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.17'
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest
- name: Collect licenses
run: |
mkdir -p ${GITHUB_WORKSPACE}/licenses
for mod in $(find . -name go.mod); do
(
cd $(dirname ${mod})
go-licenses save ./... \
--ignore github.com/golang/freetype \
--ignore github.com/seqsense/pcdeditor \
--save_path ./.licenses --force
chmod -R a+w ./.licenses
cp -r .licenses/* ${GITHUB_WORKSPACE}/licenses/
)
done
tar czf licenses.tar.gz ./licenses
- name: Upload
run: gh release upload ${{ github.event.release.tag_name }} licenses.tar.gz --clobber
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}