Skip to content

chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #238

chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows

chore(deps): bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #238

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Upload artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v3
with:
name: HearthDb.dll
path: "./HearthDb/bin/Release/netstandard2.0/HearthDb.dll"
deploy:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push'
permissions:
id-token: write
contents: read
steps:
- name: Download artifact
uses: actions/[email protected]
with:
name: HearthDb.dll
path: bin
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ vars.HDT_LIBS_AWS_DEPLOY_ROLE_ARN }}
aws-region: us-east-1
- name: Deploy
run: aws s3 cp bin/*.dll s3://libs.hearthsim.net/hdt/