Replace actions/checkout with local git clone
Some checks failed
Build and Deploy to Storj / build-and-deploy (push) Failing after 0s
Some checks failed
Build and Deploy to Storj / build-and-deploy (push) Failing after 0s
This commit is contained in:
parent
53d3b4a1ea
commit
c8ce62cac9
1 changed files with 9 additions and 4 deletions
|
|
@ -9,21 +9,26 @@ jobs:
|
|||
build-and-deploy:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Clone repo
|
||||
run: |
|
||||
git clone http://localhost:3000/sscoble/brand-site.git /tmp/brand-site
|
||||
cd /tmp/brand-site
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Build website with Nix
|
||||
working-directory: /tmp/brand-site
|
||||
run: nix build .#website --no-write-lock-file
|
||||
|
||||
- name: Build speaker profile PDF
|
||||
working-directory: /tmp/brand-site
|
||||
run: nix build .#speaker-profile --no-write-lock-file
|
||||
|
||||
- name: Copy build artifacts
|
||||
run: |
|
||||
mkdir -p ./dist
|
||||
cp -r result/* ./dist/
|
||||
cp -r /tmp/brand-site/result/* ./dist/
|
||||
mkdir -p ./public/downloads
|
||||
cp result-2/* ./public/downloads/ 2>/dev/null || true
|
||||
cp /tmp/brand-site/result-2/* ./public/downloads/ 2>/dev/null || true
|
||||
|
||||
- name: Configure rclone
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue