Skip to content

Commit

Permalink
ci: update release jobs to notify
Browse files Browse the repository at this point in the history
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
  • Loading branch information
jdrouet committed Dec 20, 2023
1 parent 0d80647 commit 1062cf9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mrml-core-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
message: |
👋 Hey! I just released a new version of mrml!
Take a look at it, it's made in #rustlang, it's #opensource and it's a #freesoftware!"
https://github.com/jdrouet/mrml
https://github.com/jdrouet/mrml and https://crates.io/crates/mrml
visibility: "public"
env:
MASTODON_URL: ${{ secrets.MASTODON_URL }}
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/mrml-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,20 @@ jobs:
command: upload
args: --non-interactive --skip-existing dist/*
working-directory: packages/mrml-python

notify:
runs-on: ubuntu-latest
needs: [release]
steps:
- name: notify mastodon
uses: cbrgm/mastodon-github-action@v1
with:
message: |
👋 Hey! I just released a new version of mrml-python!
Take a look at it, it's made in #rustlang, it's #opensource and it's a #freesoftware!"
https://github.com/jdrouet/mrml and https://pypi.org/project/mrml/
visibility: "public"
env:
MASTODON_URL: ${{ secrets.MASTODON_URL }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
continue-on-error: true
19 changes: 18 additions & 1 deletion .github/workflows/mrml-wasm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
RUSTFLAGS: "-Dwarnings"

jobs:
releasing:
release:
runs-on: ubuntu-latest
container: rust:1-bullseye

Expand Down Expand Up @@ -59,3 +59,20 @@ jobs:
- name: publish release
run: wasm-pack publish

notify:
runs-on: ubuntu-latest
needs: [release]
steps:
- name: notify mastodon
uses: cbrgm/mastodon-github-action@v1
with:
message: |
👋 Hey! I just released a new version of mrml for javascript!
Take a look at it, it's made in #rustlang, it's #opensource and it's a #freesoftware!"
https://github.com/jdrouet/mrml and https://www.npmjs.com/package/mrml
visibility: "public"
env:
MASTODON_URL: ${{ secrets.MASTODON_URL }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
continue-on-error: true

0 comments on commit 1062cf9

Please sign in to comment.