File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments