Skip to content

Commit 57241fe

Browse files
committed
Test publish to permaweb
1 parent 3812019 commit 57241fe

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish to Permaweb
2+
3+
# Run workflow on every push to the master branch
4+
on:
5+
push:
6+
branches:
7+
- permaweb
8+
9+
jobs:
10+
publish:
11+
name: build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Inject slug/short variables
16+
uses: rlespinasse/github-slug-action@v3.x
17+
- name: "Set master version"
18+
if: ${{ github.ref == 'refs/heads/master'}}
19+
run: echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
20+
env:
21+
APP_VERSION: $(git rev-parse --short "$GITHUB_SHA")
22+
- name: "Set branch version"
23+
if: ${{ github.ref != 'refs/heads/master'}}
24+
run: echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV
25+
env:
26+
APP_VERSION: ${{ env.GITHUB_REF_SLUG }}-$(git rev-parse --short "$GITHUB_SHA")
27+
- name: Setup dotnet
28+
uses: actions/setup-dotnet@v1
29+
with:
30+
dotnet-version: 8.0.x
31+
- name: Build with dotnet
32+
run: dotnet build src/aoWebWallet --configuration Release
33+
- name: Publish Website
34+
run: dotnet publish src/aoWebWallet -o publish/aoWebWallet -c Release --version-suffix ${{ env.APP_VERSION }}
35+
- name: upload the directory
36+
uses: outlierventures/arweave-bundler-action@v0.3.2
37+
with:
38+
command: upload
39+
directory: publish/aoWebWallet/wwwroot/
40+
private-key: ${{secrets.ARWEAVE_PRIVATE_KEY}}
41+
network: arweave.net

0 commit comments

Comments
 (0)