Skip to content

Commit

Permalink
Add fetch-depth: 0 to checkout actions and streamline move_built.sh b…
Browse files Browse the repository at this point in the history
…y removing redundant git commands
  • Loading branch information
nullchinchilla committed Aug 12, 2024
1 parent 9566282 commit ba3bb7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -38,6 +40,8 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -66,6 +70,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -102,7 +108,9 @@ jobs:
run: b2 sync ./OUTPUT/ b2://geph-dl/geph4-binaries/

build_cross_linux:
runs-on: ubuntu-latest
- uses: actions/checkout@v3
with:
fetch-depth: 0
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand Down
4 changes: 1 addition & 3 deletions move_built.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
git fetch --tags
git fetch
git checkout master
VERSION=$(git describe --always)
echo $VERSION
mkdir -p ./OUTPUT/$VERSION/
mv ./target/x86_64-unknown-linux-musl/release/geph4-client ./OUTPUT/$VERSION/geph4-client-linux-amd64
mv ./target/x86_64-unknown-linux-gnu/release/geph4-vpn-helper ./OUTPUT/$VERSION/geph4-vpn-helper-linux-amd64
Expand Down

0 comments on commit ba3bb7f

Please sign in to comment.