mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
more cicd fixes
This commit is contained in:
parent
23f56a1f0c
commit
8be47681c1
1 changed files with 2 additions and 8 deletions
10
.github/workflows/publish-release.yaml
vendored
10
.github/workflows/publish-release.yaml
vendored
|
|
@ -17,18 +17,12 @@ jobs:
|
|||
- name: Variable Gathering
|
||||
id: gathervars
|
||||
run: |
|
||||
# get the package version
|
||||
echo 'PACKAGE_JSON<<EOF' >> $GITHUB_ENV
|
||||
cat ./package.json >> $GITHUB_ENV
|
||||
echo 'EOF' >> $GITHUB_ENV
|
||||
echo '${{ fromJson(env.PACKAGE_JSON).version }}'
|
||||
|
||||
# get a current BUILD_DATE
|
||||
echo "::set-output name=BUILD_DATE::$(date +%Y%m%d-%H%M%S)"
|
||||
echo "::set-output name=VERSION::${{ fromJson(env.PACKAGE_JSON).version }}"
|
||||
echo "::set-output name=VERSION::$(jq -r '.version' ./package.json)"
|
||||
|
||||
# setting tags
|
||||
if echo "${{ fromJson(env.PACKAGE_JSON).version }}" | grep -q "beta"; then
|
||||
if jq -r '.version' ./package.json | grep -q "beta"; then
|
||||
TAGS=beta
|
||||
PRIMARY_TAG=beta
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue