-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Florian Omnès <[email protected]>
- Loading branch information
Showing
6 changed files
with
198 additions
and
144 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,27 +7,29 @@ on: | |
branches: | ||
- release/* | ||
- doc/* | ||
workflow_call: | ||
inputs: | ||
run-tests: | ||
required: true | ||
type: boolean | ||
|
||
env: | ||
IS_RELEASE: ${{ github.event_name == 'release' && github.event.action == 'created' }} | ||
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }} | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-20.04 | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.12 | ||
|
||
- name: Install dependencies | ||
run: | | ||
|
@@ -55,10 +57,12 @@ jobs: | |
name: pdf-reference-guide | ||
path: ${{ env.PDF_PATH }} | ||
|
||
- name: Upload user guide as release asset | ||
|
||
- name: Publish assets | ||
if: ${{ env.IS_RELEASE == 'true' }} | ||
uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: ${{ env.PDF_PATH_ASSET }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
tag: ${{ github.event.inputs.release_tag }} | ||
run: | | ||
gh release upload "$tag" ${{ env.PDF_PATH }} | ||
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 |
---|---|---|
|
@@ -8,10 +8,15 @@ on: | |
- develop | ||
schedule: | ||
- cron: '21 2 * * *' | ||
workflow_call: | ||
inputs: | ||
run-tests: | ||
required: true | ||
type: boolean | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
IS_RELEASE: ${{ github.event_name == 'release' && github.event.action == 'created' }} | ||
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }} | ||
IS_PUSH: ${{ github.event_name == 'push' }} | ||
|
||
jobs: | ||
|
@@ -110,21 +115,20 @@ jobs: | |
with: | ||
path: _build/*.rpm | ||
|
||
publish_assets: | ||
name: Publish assets | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download all artifacts | ||
- name: Install gh | ||
if: ${{ env.IS_RELEASE == 'true' }} | ||
uses: actions/download-artifact@v3 | ||
|
||
run: | | ||
yum -y install dnf | ||
dnf -y install 'dnf-command(config-manager)' | ||
dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo | ||
dnf -y install gh | ||
- name: Publish assets | ||
if: ${{ env.IS_RELEASE == 'true' }} | ||
uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: '["*/*.tar.gz", "*/*.rpm"]' | ||
GITHUB_TOKEN: ${{ github.token }} | ||
tag: ${{ github.event.inputs.release_tag }} | ||
run: | | ||
gh release upload "$tag" _build/*.tar.gz _build/*.rpm | ||
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 |
---|---|---|
|
@@ -8,10 +8,15 @@ on: | |
- develop | ||
schedule: | ||
- cron: '21 2 * * *' | ||
workflow_call: | ||
inputs: | ||
run-tests: | ||
required: true | ||
type: boolean | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
IS_RELEASE: ${{ github.event_name == 'release' && github.event.action == 'created' }} | ||
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }} | ||
IS_PUSH: ${{ github.event_name == 'push' }} | ||
|
||
jobs: | ||
|
@@ -33,7 +38,7 @@ jobs: | |
- name: Install libraries | ||
run: | | ||
dnf install -y epel-release git cmake wget rpm-build redhat-lsb-core | ||
dnf install -y epel-release git cmake wget rpm-build redhat-lsb-core | ||
dnf install -y unzip libuuid-devel boost-test boost-devel gcc-toolset-10-toolchain zlib-devel | ||
- name: Checkout | ||
|
@@ -99,21 +104,18 @@ jobs: | |
with: | ||
path: _build/*.rpm | ||
|
||
publish_assets: | ||
name: Publish assets | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Download all artifacts | ||
- name: Install gh | ||
if: ${{ env.IS_RELEASE == 'true' }} | ||
uses: actions/download-artifact@v3 | ||
|
||
run: | | ||
dnf -y install 'dnf-command(config-manager)' | ||
dnf -y config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo | ||
dnf -y install gh | ||
- name: Publish assets | ||
if: ${{ env.IS_RELEASE == 'true' }} | ||
uses: alexellis/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
asset_paths: '["*/*.tar.gz", "*/*.rpm"]' | ||
GITHUB_TOKEN: ${{ github.token }} | ||
tag: ${{ github.event.inputs.release_tag }} | ||
run: | | ||
gh release upload "$tag" _build/*.tar.gz _build/*.rpm | ||
Oops, something went wrong.