-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34e1999
commit e7a3d57
Showing
6 changed files
with
210 additions
and
154 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
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,72 @@ | ||
name: Releases | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
PYTHON_VERSION: 3.9 | ||
|
||
jobs: | ||
labeler: | ||
name: Update labels | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run Labeler | ||
uses: crazy-max/ghaction-github-labeler@v4.1.0 | ||
|
||
continuous-integration: | ||
name: Continuous Integration | ||
uses: "./.github/workflows/continuous_integration.yml" | ||
secrets: inherit | ||
|
||
tests: | ||
name: Tests | ||
uses: "./.github/workflows/tests.yml" | ||
secrets: inherit | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: [continuous-integration, tests] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Setup Git | ||
env: | ||
PAT: ${{ secrets.PAT }} | ||
USERNAME: ${{ secrets.SIMBOT_BOT_USERNAME }} | ||
EMAIL: ${{ secrets.SIMBOT_BOT_EMAIL }} | ||
run: | | ||
git config user.name "${USERNAME}" | ||
git config user.email "${EMAIL}" | ||
git config --global url."https://${PAT}@github.com/".insteadOf "https://github.com/" | ||
- name: Install Poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: "poetry" | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "lts/*" | ||
cache: "npm" | ||
|
||
- name: Install semantic release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
run: | | ||
npm install --no-save @bjoluc/semantic-release-config-poetry | ||
npx semantic-release |
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
Oops, something went wrong.