forked from 1b-agent/opencadstudio-upstream
Fix website and snap Nix workflow wiring
Co-authored-by: dichhead <330471626+dichhead@users.noreply.github.com>
This commit is contained in:
1 parent
599626437b
commit
b92527c956
2 files changed
+9
-2
No files matched your search
@@ -99,7 +99,13 @@ jobs:
|
|||||||
path: website
|
path: website
|
||||||
|
|
||||||
- name: Validate website
|
- name: Validate website
|
||||||
run: nix develop --command python3 "$GITHUB_WORKSPACE/website/scripts/test_site.py"
|
run: |
|
||||||
|
SCRIPT=$(cat <<'EOF'
|
||||||
|
cd "$GITHUB_WORKSPACE/website"
|
||||||
|
python3 scripts/test_site.py
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
nix develop --command bash --noprofile --norc -euo pipefail -c "$SCRIPT"
|
||||||
|
|
||||||
- name: Assemble landing page
|
- name: Assemble landing page
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -156,9 +156,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Set package version
|
- name: Set package version
|
||||||
id: package
|
id: package
|
||||||
|
env:
|
||||||
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
SCRIPT=$(cat <<'EOF'
|
SCRIPT=$(cat <<'EOF'
|
||||||
VERSION=$(python3 scripts/release.py versions --tag "$RELEASE_TAG" | sed -n 's/^version=//p')
|
|
||||||
test -n "$VERSION"
|
test -n "$VERSION"
|
||||||
sed -i "s/^version: .*/version: '$VERSION'/" snap/snapcraft.yaml
|
sed -i "s/^version: .*/version: '$VERSION'/" snap/snapcraft.yaml
|
||||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||||
|
|||||||
Reference in new issue
Block a user