Skip to content

Commit

Permalink
Merge pull request #848 from Samweli/staging_release
Browse files Browse the repository at this point in the history
Staging repository updates
  • Loading branch information
azvoleff authored Oct 29, 2024
2 parents 5f24fd4 + 2c70454 commit 20543ee
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/staging_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Updating staging with a new released plugin
on:
release:
types:
- published
- edited

jobs:
update-staging:
runs-on: ubuntu-22.04
container:
image: qgis/qgis:release-3_34
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Fix Python command
run: apt-get install python-is-python3

- name: Install python
uses: actions/setup-python@v4

- name: Install plugin dependencies
run: pip install -r requirements-dev.txt

- name: Checkout code
uses: actions/checkout@v2
with:
ref: release
- name: Update custom plugin repository to include latest plugin releases
run: |
invoke generate-plugin-repo-xml
echo " " >> docs/repository/plugins.xml
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global --add safe.directory /__w/trends.earth/trends.earth
git add -A
git commit -m "Update on plugins.xml"
git push origin release

0 comments on commit 20543ee

Please sign in to comment.