Move archive workaround into ci.yaml

This lets us use the scripts locally without the extra steps.
This commit is contained in:
Asher 2021-02-11 14:41:52 -06:00
parent 1f36c34267
commit 164e8ac0a1
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
3 changed files with 17 additions and 10 deletions

View File

@ -49,6 +49,11 @@ jobs:
uses: ./ci/images/debian10 uses: ./ci/images/debian10
with: with:
args: ./ci/steps/release.sh args: ./ci/steps/release.sh
# https://github.com/actions/upload-artifact/issues/38
- name: Create npm package artifact
run: |
mkdir -p release-npm-package
tar -czf release-npm-package/package.tar.gz release
- name: Upload npm package artifact - name: Upload npm package artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
@ -60,11 +65,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Download npm package - name: Download npm package artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: npm-package name: npm-package
path: ./release-npm-package path: ./release-npm-package
# https://github.com/actions/upload-artifact/issues/38
- name: Extract npm package artifact
run: tar -xzf release-npm-package/package.tar.gz
- name: Run ./ci/steps/release-packages.sh - name: Run ./ci/steps/release-packages.sh
uses: ./ci/images/centos7 uses: ./ci/images/centos7
with: with:
@ -80,11 +88,14 @@ jobs:
runs-on: ubuntu-arm64-latest runs-on: ubuntu-arm64-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Download npm package - name: Download npm package artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: npm-package name: npm-package
path: ./release-npm-package path: ./release-npm-package
# https://github.com/actions/upload-artifact/issues/38
- name: Extract npm package artifact
run: tar -xzf release-npm-package/package.tar.gz
- name: Run ./ci/steps/release-packages.sh - name: Run ./ci/steps/release-packages.sh
uses: ./ci/images/centos7 uses: ./ci/images/centos7
with: with:
@ -100,11 +111,14 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Download npm package - name: Download npm package artifact
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: npm-package name: npm-package
path: ./release-npm-package path: ./release-npm-package
# https://github.com/actions/upload-artifact/issues/38
- name: Extract npm package artifact
run: tar -xzf release-npm-package/package.tar.gz
- run: ./ci/steps/release-packages.sh - run: ./ci/steps/release-packages.sh
env: env:
# Otherwise we get rate limited when fetching the ripgrep binary. # Otherwise we get rate limited when fetching the ripgrep binary.

View File

@ -15,9 +15,6 @@ main() {
fi fi
PATH="$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin:$PATH" PATH="$PWD/node-$NODE_VERSION-$NODE_OS-$NODE_ARCH/bin:$PATH"
# https://github.com/actions/upload-artifact/issues/38
tar -xzf release-npm-package/package.tar.gz
yarn release:standalone yarn release:standalone
yarn test:standalone-release yarn test:standalone-release
yarn package yarn package

View File

@ -8,10 +8,6 @@ main() {
yarn build yarn build
yarn build:vscode yarn build:vscode
yarn release yarn release
# https://github.com/actions/upload-artifact/issues/38
mkdir -p release-npm-package
tar -czf release-npm-package/package.tar.gz release
} }
main "$@" main "$@"