Going back to actions again

This commit is contained in:
Théo DURR 2022-08-26 23:19:29 +02:00
parent ec65ca11d6
commit 895d4b33a6
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
2 changed files with 17 additions and 12 deletions

View File

@ -44,15 +44,20 @@ jobs:
poetry run ./manage.py compilemessages
sudo systemctl restart uwsgi
sentry:
runs-on: ubuntu-latest
environment: production
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
sentry-release:
- uses: actions/checkout@v2
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
with:
environment: production
- name: Sentry Release
uses: getsentry/action-release@v1.2.0
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
with:
environment: production

View File

@ -19,7 +19,7 @@ jobs:
uses: technote-space/get-diff-action@v6
id: git-diff
with:
PATTERNS: +**/*.+(py)
PATTERNS: /**/*.py
- name: Set up python
if: steps.git-diff.outputs.diff