aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorZac Pullar-Strecker <[email protected]>2020-08-25 05:44:36 +0100
committerZac Pullar-Strecker <[email protected]>2020-08-25 05:44:36 +0100
commitb835f06cecd2189cb32a431fdb85245fbf53032a (patch)
tree8bb4ba65f4922e9cca571a7d4a7fa17d047ae779 /.github/workflows
parent452afaebe188251cd4403e56999bf8b58de4fba9 (diff)
parentef9cea945d5767e7c60d5931a7649a73caea23ad (diff)
Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/publish.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
new file mode 100644
index 000000000..be2c7a8ca
--- /dev/null
+++ b/.github/workflows/publish.yml
@@ -0,0 +1,44 @@
1name: publish
2on:
3 workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
4
5 schedule:
6 - cron: "0 0 * * *" # midnight UTC
7
8 push:
9 branches:
10 - release
11
12jobs:
13 publish:
14 name: publish
15 runs-on: ubuntu-16.04
16 steps:
17 - name: Checkout repository
18 uses: actions/checkout@v2
19 with:
20 fetch-depth: 0
21
22 - name: Install Rust toolchain
23 uses: actions-rs/toolchain@v1
24 with:
25 toolchain: stable
26 profile: minimal
27 override: true
28
29 - name: Install cargo-workspaces
30 uses: actions-rs/[email protected]
31 with:
32 crate: cargo-workspaces
33
34 - name: Release
35 env:
36 CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
37 PATCH: ${{ github.run_number }}
38 shell: bash
39 run: |
40 git config --global user.email "[email protected]"
41 git config --global user.name "Github Action"
42 rm Cargo.lock
43 cargo workspaces rename ra_ap_%n
44 cargo workspaces publish --yes --force '*' --exact --no-git-commit --allow-dirty --skip-published custom 0.0.$PATCH