mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
moved variable out of github actions
This commit is contained in:
parent
29288b5edc
commit
9db27aaa28
2 changed files with 3 additions and 4 deletions
4
.github/workflows/publish-release.yaml
vendored
4
.github/workflows/publish-release.yaml
vendored
|
|
@ -36,10 +36,6 @@ jobs:
|
|||
$(docker manifest inspect ghcr.io/${{ github.repository }}:$VERSION > /dev/null) || NOT_PREVIOUSLY_PUBLISHED=1
|
||||
echo "::set-output name=NOT_PREVIOUSLY_PUBLISHED::$NOT_PREVIOUSLY_PUBLISHED"
|
||||
|
||||
- name: Update Version in Code
|
||||
run: |
|
||||
sed -i 's/insert-version/${{ steps.gathervars.outputs.VERSION }}/g' ./src/routes/settings.html.svelte
|
||||
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@v1
|
||||
if: ${{ steps.gathervars.outputs.NOT_PREVIOUSLY_PUBLISHED != 0 }}
|
||||
|
|
|
|||
|
|
@ -8,5 +8,8 @@ git clone ${PROJECT_URL} ${PROJECT_NAME}
|
|||
cd ${PROJECT_NAME}
|
||||
npm install
|
||||
|
||||
# inject the version number
|
||||
sed -i 's/insert-version/${{ steps.gathervars.outputs.VERSION }}/g' ./src/routes/settings.html.svelte
|
||||
|
||||
# build the project
|
||||
npm run build
|
||||
Loading…
Add table
Add a link
Reference in a new issue