Support tags as well as branches when deploying
This commit is contained in:
parent
a6bb44cf39
commit
0ed98dc06a
1 changed files with 1 additions and 7 deletions
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
@ -21,12 +21,6 @@ jobs:
|
|||
- name: 🌎 Set Environment Variables Part 2
|
||||
run: |
|
||||
echo "newReleaseDir=${{ env.releasesDir }}/${{ env.newReleaseName }}" >> $GITHUB_ENV
|
||||
- name: 🔀 Get Branch
|
||||
id: branch
|
||||
run: |
|
||||
echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
|
||||
- name: 🔍 Check Branch
|
||||
run: echo "${{ env.branch }}"
|
||||
- name: 🔄 Clone Repository
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
|
@ -45,7 +39,7 @@ jobs:
|
|||
mkdir ${{ env.newReleaseDir }}
|
||||
|
||||
# Clone app
|
||||
git clone --depth 1 --branch ${{ env.branch }} https://github.com/${{ env.repository }} ${{ env.newReleaseName }}
|
||||
git clone --depth 1 --branch ${{ github.ref_name }} https://github.com/${{ env.repository }} ${{ env.newReleaseName }}
|
||||
|
||||
# Mark release
|
||||
cd ${{ env.newReleaseDir }}
|
||||
|
|
Loading…
Add table
Reference in a new issue