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
with:
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
uses: actions/upload-artifact@v2
with:
@ -60,11 +65,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Download npm package
- name: Download npm package artifact
uses: actions/download-artifact@v2
with:
name: 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
uses: ./ci/images/centos7
with:
@ -80,11 +88,14 @@ jobs:
runs-on: ubuntu-arm64-latest
steps:
- uses: actions/checkout@v1
- name: Download npm package
- name: Download npm package artifact
uses: actions/download-artifact@v2
with:
name: 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
uses: ./ci/images/centos7
with:
@ -100,11 +111,14 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Download npm package
- name: Download npm package artifact
uses: actions/download-artifact@v2
with:
name: 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
env:
# Otherwise we get rate limited when fetching the ripgrep binary.

View File

@ -15,9 +15,6 @@ main() {
fi
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 test:standalone-release
yarn package

View File

@ -8,10 +8,6 @@ main() {
yarn build
yarn build:vscode
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 "$@"