Skip to content

Commit ea46508

Browse files
quark-zjumeta-codesync[bot]
authored andcommitted
github: update webpage build script
Summary: We changed linux release to use portable tarballs instead of Ubuntu packages. Upgrade the script accordingly. Reviewed By: muirdm Differential Revision: D97337492 fbshipit-source-id: 4d0508cc618fd599500bd1242200f1196675731b
1 parent 1c55a99 commit ea46508

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/sapling-website-deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
deploy:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
1313
concurrency:
@@ -32,12 +32,17 @@ jobs:
3232
# - For a release, it should depend on the binaries being published and
3333
# run afterwards with the new version.
3434
# - For a pull request, `sl` built from the code that is out for review.
35-
- name: Download latest Sapling release
35+
- name: Download and install sapling
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: ${{ format('gh release download --pattern \*.Ubuntu22.04.deb --repo {0}', github.repository) }}
39-
- name: Install Sapling
40-
run: sudo apt install -y ./*.Ubuntu22.04.deb
38+
run: |
39+
mkdir -p ~/.local/share/sl
40+
cd ~/.local/share/sl
41+
${{ format('gh release download --pattern \*linux-x64.tar.xz --repo {0}', github.repository) }}
42+
tar xf *.tar.xz
43+
realpath . >> "$GITHUB_PATH"
44+
- name: Test sl version
45+
run: sl version
4146
- name: Write out release data
4247
env:
4348
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)