Added arns name #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Permaweb | |
# Run workflow on every push to the master branch | |
on: | |
push: | |
branches: | |
- permaweb | |
jobs: | |
publish: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Inject slug/short variables | |
uses: rlespinasse/[email protected] | |
- name: "Set master version" | |
if: ${{ github.ref == 'refs/heads/master'}} | |
run: echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV | |
env: | |
APP_VERSION: $(git rev-parse --short "$GITHUB_SHA") | |
- name: "Set branch version" | |
if: ${{ github.ref != 'refs/heads/master'}} | |
run: echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV | |
env: | |
APP_VERSION: ${{ env.GITHUB_REF_SLUG }}-$(git rev-parse --short "$GITHUB_SHA") | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build with dotnet | |
run: dotnet build src/aoWebWallet --configuration Release | |
- name: Publish Website | |
run: dotnet publish src/aoWebWallet -o publish/aoWebWallet -c Release --version-suffix ${{ env.APP_VERSION }} | |
- name: upload the directory | |
uses: outlierventures/[email protected] | |
with: | |
command: upload | |
directory: publish/aoWebWallet/wwwroot/ | |
private-key: ${{secrets.ARWEAVE_PRIVATE_KEY}} | |
ant-address: 'aowebwallet' | |
network: arweave.net |