summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatan Kushner <hello@matchai.dev>2021-05-01 15:42:08 -0400
committerGitHub <noreply@github.com>2021-05-01 15:42:08 -0400
commitafd3d26da0715552db85277498e12535604e05bc (patch)
tree03276c00335fdae2f4f942e08054408e64b32643
parentd6bfe0a3f1176f20cd5028e00e8098908c78692f (diff)
ci: publish on successful release (#2676)
-rw-r--r--.github/workflows/deploy.yml86
1 files changed, 44 insertions, 42 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index e0d1c300d..21750b234 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -5,48 +5,6 @@ on:
- "v*"
jobs:
- # Publish starship to Crates.io
- cargo_publish:
- name: Publish Cargo Package
- runs-on: ubuntu-latest
- steps:
- - name: Setup | Checkout
- uses: actions/checkout@v2
-
- - name: Setup | Rust
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- profile: minimal
- override: true
-
- - name: Build | Publish
- run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
-
- update_brew_formula:
- name: Update Brew Formula
- runs-on: ubuntu-latest
- steps:
- - uses: mislav/bump-homebrew-formula-action@v1.12
- with:
- formula-name: starship
- env:
- COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
-
- publish_docs:
- name: Publish docs to Netlify
- runs-on: ubuntu-latest
-
- steps:
- - name: Setup | Checkout
- uses: actions/checkout@master
-
- - name: Publish
- uses: netlify/actions/build@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
-
# Build sources for every OS
github_build:
name: Build release binaries
@@ -188,3 +146,47 @@ jobs:
body_path: RELEASE.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+ # Publish starship to Crates.io
+ cargo_publish:
+ name: Publish Cargo Package
+ runs-on: ubuntu-latest
+ needs: github_release
+ steps:
+ - name: Setup | Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup | Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ profile: minimal
+ override: true
+
+ - name: Build | Publish
+ run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
+
+ update_brew_formula:
+ name: Update Brew Formula
+ runs-on: ubuntu-latest
+ needs: github_release
+ steps:
+ - uses: mislav/bump-homebrew-formula-action@v1.12
+ with:
+ formula-name: starship
+ env:
+ COMMITTER_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
+
+ publish_docs:
+ name: Publish docs to Netlify
+ runs-on: ubuntu-latest
+ needs: github_release
+ steps:
+ - name: Setup | Checkout
+ uses: actions/checkout@master
+
+ - name: Publish
+ uses: netlify/actions/build@master
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}