浏览代码

Fix github deploy action

pull/483/head
Guillaume Vincent 5 年前
父节点
当前提交
0cd9e2ec3d
共有 4 个文件被更改,包括 52 次插入14 次删除
  1. +5
    -3
      .github/workflows/deploy.yml
  2. +0
    -0
      bin/build_web_extensions
  3. +12
    -11
      bin/release_web_extensions
  4. +35
    -0
      yarn.lock

+ 5
- 3
.github/workflows/deploy.yml 查看文件

@@ -1,9 +1,11 @@
name: deploy

on:
push:
branches:
- refs/tags/*
push:
branches:
- master
tags:
- '*'

jobs:
deploy-containers:


bin/build_web_extension → bin/build_web_extensions 查看文件


+ 12
- 11
bin/release_web_extensions 查看文件

@@ -21,7 +21,9 @@ function check_tag_is_present {
}

function check_repository_is_clean {
git diff-index --quiet HEAD
git remote update
git status
git diff-index --quiet HEAD --;
if [ $? == 1 ]
then
echo >&2 "Git repository not clean. Aborting."
@@ -29,20 +31,19 @@ function check_repository_is_clean {
fi
}

function check_lesspass_pure_built_files_are_updated {
yarn workspace lesspass-pure run build
check_repository_is_clean
}

function check_lesspass_web_extension_built_files_are_updated {
yarn workspace lesspass-web-extension run build
check_repository_is_clean
function check_env_variables_setted {
if [ -z "$EXTENSION_ID" ] || [ -z "$CLIENT_ID" ] || [ -z "$CLIENT_SECRET" ] || [ -z "$REFRESH_TOKEN" ] || [ -z "$WEB_EXT_API_KEY" ] || [ -z "$WEB_EXT_API_SECRET" ]; then
echo "Need to set EXTENSION_ID, CLIENT_ID, CLIENT_SECRET, REFRESH_TOKEN, WEB_EXT_API_KEY and WEB_EXT_API_SECRET env variables to release web extensions"
exit 1
fi
}

check_branch_is_master
check_tag_is_present
check_lesspass_web_extension_built_files_are_updated
check_lesspass_pure_built_files_are_updated
check_env_variables_setted
yarn workspace lesspass-web-extension run build
yarn workspace lesspass-pure run build
check_repository_is_clean

set -o errexit
set -o pipefail


+ 35
- 0
yarn.lock 查看文件

@@ -8206,6 +8206,25 @@ left-pad@^1.3.0:
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==

lesspass-crypto@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass-crypto/-/lesspass-crypto-9.0.0.tgz#11bd5a4c22d67b139412af7760647b280d5225fd"
integrity sha512-c2oEEOSx2+w+aGGoCsEVNK+yDw6yVLy2uEFExlMK2ANPzP2VDNtXl7JZizuEeVsGS9MO8A67dSYm/EWLtDsZ5A==

lesspass-entropy@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass-entropy/-/lesspass-entropy-9.0.0.tgz#58201ad4242643c0b0097466202b6fd731d8310e"
integrity sha512-apX/BL3vdr9VvRm5lIVn8Pl17IIAnzuoAbFAN3Sf7jWiK7jCfbLMvN+yjtv2/Vnxqop4NX42oMq9fynMb1/cKw==
dependencies:
lesspass-crypto "9.0.0"

lesspass-fingerprint@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass-fingerprint/-/lesspass-fingerprint-9.0.0.tgz#ffaf20dda04eb9c6b9f98e2110852d827618a34a"
integrity sha512-pguc6+hF8iXCTQEVegLeVGqvk0464M6tS0RdRdHx894fwL0/311EzDg2sYXIV6hJ82R6dB4mTLp0JJf0lXgRQQ==
dependencies:
lesspass-crypto "9.0.0"

lesspass-pure@latest:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass-pure/-/lesspass-pure-9.0.0.tgz#33030839e3bce7acc782a8cb8204152e2a29fd1d"
@@ -8231,6 +8250,22 @@ lesspass-pure@latest:
vuex-persistedstate "^2.5.4"
vuex-router-sync "5.0.0"

lesspass-render-password@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass-render-password/-/lesspass-render-password-9.0.0.tgz#80cdc80b8362323b2e8d80aa286e558724659e92"
integrity sha512-qu5bySq0hBIzN4aSMY9RkRy2r0Xy4Y0ZocdsenOaU34az632xDZxkioyocgq16WquIyxhyh/QTaUQVfzqwt3aA==
dependencies:
big-integer "1.6.22"

lesspass@9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/lesspass/-/lesspass-9.0.0.tgz#376f2fc28482ec5596b0078ec7ab98e67d40cc22"
integrity sha512-P3+Ep4TkvUclx2rsOeDMTMRVs/r5dHumGtUqt8AScQ8CSQ8JhvdUuFY8enM//T9J2VjwFK/rOLgxvmfDWFifqg==
dependencies:
lesspass-entropy "9.0.0"
lesspass-fingerprint "9.0.0"
lesspass-render-password "9.0.0"

leven@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580"


正在加载...
取消
保存