aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml4
-rw-r--r--.github/workflows/release.yaml15
2 files changed, 10 insertions, 9 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index e7745c6cd..58c8f083a 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -126,8 +126,8 @@ jobs:
126 - run: npm ci 126 - run: npm ci
127 working-directory: ./editors/code 127 working-directory: ./editors/code
128 128
129 # - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; } 129 - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; }
130 # working-directory: ./editors/code 130 working-directory: ./editors/code
131 131
132 - run: npm run lint 132 - run: npm run lint
133 working-directory: ./editors/code 133 working-directory: ./editors/code
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 0434b6128..df34dfdb8 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -6,6 +6,7 @@ on:
6 push: 6 push:
7 branches: 7 branches:
8 - release 8 - release
9 - nightly
9 10
10jobs: 11jobs:
11 dist: 12 dist:
@@ -48,12 +49,12 @@ jobs:
48 node-version: 12.x 49 node-version: 12.x
49 50
50 - name: Dist 51 - name: Dist
51 if: github.event_name == 'push' 52 if: github.ref == 'refs/heads/release'
52 run: cargo xtask dist 53 run: cargo xtask dist --version 0.2.$GITHUB_RUN_NUMBER --tag $(date --iso --utc)
53 54
54 - name: Dist 55 - name: Dist
55 if: github.event_name != 'push' 56 if: github.ref != 'refs/heads/release'
56 run: cargo xtask dist --nightly 57 run: cargo xtask dist --version 0.3.$GITHUB_RUN_NUMBER-nightly --tag nightly
57 58
58 - name: Upload artifacts 59 - name: Upload artifacts
59 uses: actions/upload-artifact@v1 60 uses: actions/upload-artifact@v1
@@ -72,9 +73,9 @@ jobs:
72 node-version: 12.x 73 node-version: 12.x
73 74
74 - run: echo "::set-env name=TAG::$(date --iso --utc)" 75 - run: echo "::set-env name=TAG::$(date --iso --utc)"
75 if: github.event_name == 'push' 76 if: github.ref == 'refs/heads/release'
76 - run: echo "::set-env name=TAG::nightly" 77 - run: echo "::set-env name=TAG::nightly"
77 if: github.event_name == 'schedule' 78 if: github.ref != 'refs/heads/release'
78 - run: 'echo "TAG: $TAG"' 79 - run: 'echo "TAG: $TAG"'
79 80
80 - name: Checkout repository 81 - name: Checkout repository
@@ -105,7 +106,7 @@ jobs:
105 working-directory: ./editors/code 106 working-directory: ./editors/code
106 107
107 - name: Publish Extension 108 - name: Publish Extension
108 if: github.event_name == 'push' 109 if: github.ref == 'refs/heads/release'
109 working-directory: ./editors/code 110 working-directory: ./editors/code
110 # token from https://dev.azure.com/rust-analyzer/ 111 # token from https://dev.azure.com/rust-analyzer/
111 run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix 112 run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} --packagePath ../../dist/rust-analyzer.vsix