|
1 | | -name: Build |
| 1 | +name: Release |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | tags: |
5 | 5 | - '*' |
6 | 6 | jobs: |
7 | | - release: |
8 | | - name: Build |
| 7 | + |
| 8 | + release_amd64: |
| 9 | + name: Release (AMD64 - CentOS 7 Target) |
| 10 | + runs-on: ubuntu-latest |
| 11 | + steps: |
| 12 | + - uses: actions/checkout@v1 |
| 13 | + |
| 14 | + - name: Build code-server Binary |
| 15 | + run: yarn && bash ./scripts/ci.bash |
| 16 | + env: |
| 17 | + MAJOR_VERSION: '2' |
| 18 | + TARGET: 'linux' |
| 19 | + VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}' |
| 20 | + VSCODE_VERSION: '1.38.1' |
| 21 | + MINIFY: 'true' |
| 22 | + PACKAGE: 'true' |
| 23 | + |
| 24 | + - uses: ncipollo/release-action@v1 |
| 25 | + with: |
| 26 | + artifacts: "release/*.tar.gz,release/*.zip" |
| 27 | + bodyFile: "CHANGELOG.md" |
| 28 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 29 | + |
| 30 | + release_amd64_alpine: |
| 31 | + name: Build (AMD64 - Alpine Target) |
9 | 32 | runs-on: ubuntu-latest |
10 | 33 | steps: |
11 | 34 | - uses: actions/checkout@v1 |
12 | 35 |
|
13 | 36 | - name: Build code-server Binary |
14 | | - run: bash ./scripts/ci.bash |
| 37 | + run: yarn && bash ./scripts/ci.bash |
| 38 | + env: |
| 39 | + MAJOR_VERSION: '2' |
| 40 | + TARGET: 'alpine' |
| 41 | + VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}' |
| 42 | + VSCODE_VERSION: '1.38.1' |
| 43 | + MINIFY: 'true' |
| 44 | + PACKAGE: 'true' |
| 45 | + |
| 46 | + - uses: ncipollo/release-action@v1 |
| 47 | + with: |
| 48 | + artifacts: "release/*.tar.gz,release/*.zip" |
| 49 | + bodyFile: "CHANGELOG.md" |
| 50 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 51 | + |
| 52 | + release_macos: |
| 53 | + name: Build (macOS Target) |
| 54 | + runs-on: macOS-latest |
| 55 | + steps: |
| 56 | + - uses: actions/checkout@v1 |
| 57 | + |
| 58 | + - name: Workaround outdated Node in CI |
| 59 | + run: brew uninstall node@6 && brew install node@12 |
| 60 | + |
| 61 | + - name: Build code-server Binary |
| 62 | + run: yarn && bash ./scripts/ci.bash |
15 | 63 | env: |
16 | 64 | MAJOR_VERSION: '2' |
| 65 | + TARGET: 'linux' |
17 | 66 | VERSION: '${MAJOR_VERSION}.${GITHUB_SHA}' |
18 | 67 | VSCODE_VERSION: '1.38.1' |
19 | 68 | MINIFY: 'true' |
|
0 commit comments