-
Notifications
You must be signed in to change notification settings - Fork 1
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 #40 from fingerprintjs/use-reusable-workflows
Use reusable workflows for release and report status
- Loading branch information
Showing
2 changed files
with
25 additions
and
44 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
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,43 +1,22 @@ | ||
name: release | ||
|
||
name: 'Release' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
|
||
jobs: | ||
publish: | ||
environment: production | ||
name: Build and publish | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' # See 'Supported distributions' for available options | ||
java-version: '11' | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9" | ||
- name: "Install dependencies" | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install wheel | ||
pip install twine | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@91ab76a4a393a8d0c4739e9aea1818b56bc953ea | ||
with: | ||
extra_plugins: | | ||
@semantic-release/[email protected] | ||
[email protected] | ||
[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
release-server-sdk-python: | ||
name: 'Publish new version' | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-server-sdk.yml@v1 | ||
with: | ||
language: python | ||
language-version: '3.9' | ||
prepare-command: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install wheel | ||
pip install twine | ||
secrets: | ||
GH_RELEASE_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }} | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |