-
Notifications
You must be signed in to change notification settings - Fork 27
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 #253 from jnsgruk/automation-uplift
ci: update to use latest CI patterns
- Loading branch information
Showing
10 changed files
with
220 additions
and
101 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
# Check for updates to GitHub Actions every month | ||
interval: "monthly" |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,25 @@ | ||
name: Promote | ||
|
||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
promote: | ||
name: ⬆️ Promote to stable | ||
environment: "Candidate Branch" | ||
runs-on: ubuntu-latest | ||
if: | | ||
( !github.event.issue.pull_request ) | ||
&& contains(github.event.comment.body, '/promote ') | ||
&& contains(github.event.*.labels.*.name, 'testing') | ||
steps: | ||
- name: ⬆️ Promote to stable | ||
uses: snapcrafters/ci/promote-to-stable@main | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
store-token: ${{ secrets.SNAP_STORE_STABLE }} |
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,17 @@ | ||
name: Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: [ "**" ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
name: 🧪 Build snap on amd64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🧪 Build snap on amd64 | ||
uses: snapcrafters/ci/test-snap-build@main |
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: Release | ||
|
||
on: | ||
# Run the workflow each time new commits are pushed to the candidate branch. | ||
push: | ||
branches: [ "candidate" ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
jobs: | ||
get-architectures: | ||
name: 🖥 Get snap architectures | ||
runs-on: ubuntu-latest | ||
outputs: | ||
architectures: ${{ steps.get-architectures.outputs.architectures }} | ||
architectures-list: ${{ steps.get-architectures.outputs.architectures-list }} | ||
steps: | ||
- name: 🖥 Get snap architectures | ||
id: get-architectures | ||
uses: snapcrafters/ci/get-architectures@main | ||
|
||
release: | ||
name: 🚢 Release to latest/candidate | ||
needs: get-architectures | ||
runs-on: ubuntu-latest | ||
environment: "Candidate Branch" | ||
strategy: | ||
matrix: | ||
architecture: ${{ fromJSON(needs.get-architectures.outputs.architectures-list) }} | ||
steps: | ||
- name: 🚢 Release to latest/candidate | ||
uses: snapcrafters/ci/release-to-candidate@main | ||
with: | ||
architecture: ${{ matrix.architecture }} | ||
launchpad-token: ${{ secrets.LP_BUILD_SECRET }} | ||
repo-token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }} | ||
store-token: ${{ secrets.SNAP_STORE_CANDIDATE }} | ||
|
||
call-for-testing: | ||
name: 📣 Create call for testing | ||
needs: [release, get-architectures] | ||
environment: "Candidate Branch" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
issue-number: ${{ steps.issue.outputs.issue-number }} | ||
steps: | ||
- name: 📣 Create call for testing | ||
id: issue | ||
uses: snapcrafters/ci/call-for-testing@main | ||
with: | ||
architectures: ${{ needs.get-architectures.outputs.architectures }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
screenshots: | ||
name: 📸 Gather screenshots | ||
needs: call-for-testing | ||
environment: "Candidate Branch" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📸 Gather screenshots | ||
uses: snapcrafters/ci/get-screenshots@main | ||
with: | ||
issue-number: ${{ needs.call-for-testing.outputs.issue-number }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
screenshots-token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }} |
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,27 @@ | ||
name: Update | ||
|
||
on: | ||
# Runs at 10:00 UTC every day | ||
schedule: | ||
- cron: '0 10 * * *' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
sync: | ||
name: 🔄 Sync version with upstream | ||
environment: "Candidate Branch" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🔄 Sync version with upstream | ||
uses: snapcrafters/ci/sync-version@main | ||
with: | ||
token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }} | ||
update-script: | | ||
VERSION=$(curl -s https://www.gimp.org/ | grep -Po "span id='ver'>\K[^<]+") | ||
sed -i 's/^\(version: \).*$/\1'"$VERSION"'/' snap/snapcraft.yaml | ||
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,4 +7,7 @@ prime | |
__pycache__ | ||
*.pyc | ||
|
||
.bzr | ||
.bzr | ||
|
||
# Snapcraft remote-build logs | ||
gimp_*.txt |
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