Skip to content

Commit bd980a9

Browse files
committed
build: test
1 parent 23291da commit bd980a9

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

.github/actions/build-linux/action.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,25 @@ runs:
2727

2828
# - name: move binary to target directory
2929
# run: |
30-
# mkdir -p dist-linux
31-
# mv src-tauri/target/release/algokit-explorer dist-linux
30+
# mkdir -p dist
31+
# mv src-tauri/target/release/algokit-explorer dist
3232
# shell: bash
3333

3434
- name: HACK - move binary to target directory
3535
run: |
36-
mkdir -p dist-linux
37-
mv src/assets/react.svg dist-linux/algokit-explorer
36+
mkdir -p dist
37+
mv src/assets/react.svg dist/algokit-explorer
3838
shell: bash
3939

4040
- name: Generate snapcraft.yaml
4141
run: |
42-
./scripts/snap/create-snapcraft-yaml.sh ${{ github.workspace }} ${{ inputs.release-version }} "stable" "dist-linux"
42+
./scripts/snap/create-snapcraft-yaml.sh ${{ github.workspace }} ${{ inputs.release-version }} "stable" "dist"
4343
shell: bash
4444

4545
- name: Upload binary as artifact
4646
id: upload-artifact
4747
uses: actions/upload-artifact@v4
4848
with:
49-
name: algokit-explorer-linux-${{ runner.arch }}
50-
path: |
51-
dist-linux/algokit-explorer
52-
snap/snapcraft.yaml
49+
if-no-files-found: error
50+
name: algokit-explorer-${{ runner.arch }}
51+
path: dist

.github/actions/publish-linux-snap/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
- name: Build snap
1919
uses: snapcore/action-build@v1
2020
with:
21-
path: linux-artifacts
21+
path: ${{ inputs.artifacts-path }}
2222
snapcraft-args: --target-arch amd64
2323

2424
- name: Upload binary as artifact
@@ -27,7 +27,7 @@ runs:
2727
with:
2828
name: algokit-explorer-linux-snap
2929
path: |
30-
linux-artifacts/*.snap
30+
${{ inputs.artifacts-path }}/*.snap
3131
3232
#TODO: in this action, we only publish the snap as an artifact for testing purposes
3333
# once we have the release token, we will publish the snap to Snap Store

.github/workflows/release.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,16 @@ jobs:
117117
with:
118118
fetch-depth: 0
119119

120-
- uses: actions/download-artifact@v4
120+
- name: Download Linux artifacts
121+
uses: actions/download-artifact@v4
121122
with:
123+
name: algokit-explorer-linux
122124
merge-multiple: true
123-
path: artifacts
125+
path: linux-artifacts
124126

125127
- name: publish Linux Snap
126128
if: ${{ runner.os == 'Linux' }}
127129
uses: ./.github/actions/publish-linux-snap
128130
with:
129-
artifacts-path: artifacts
131+
artifacts-path: linux-artifacts
130132
linux-artifact-name: ${{ needs.build-tauri.outputs.linux-artifact-name }}

scripts/snap/create-snapcraft-yaml.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ apps:
5353
- wayland
5454
EOF
5555

56-
echo "snapcraft.yaml has been created at ${DESTINATION_DIR}/snap/snapcraft.yaml"
56+
echo "snapcraft.yaml has been created at ${DESTINATION_DIR}/snapcraft.yaml"

0 commit comments

Comments
 (0)