-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 950 Bytes
/
BuildMaster.yml
File metadata and controls
30 lines (26 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: BuildMaster.yml
on:
push:
branches:
- master
jobs:
build:
name: Build master on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Pack release version
run: dotnet pack --configuration Release
- name: Get package name
id: package_name
run: |
$pkg = Get-ChildItem -Path . -Filter *.nupkg -Exclude *.symbols.nupkg -Recurse | Select-Object -First 1
echo "full_name=$($pkg.FullName)" >> $env:GITHUB_OUTPUT
echo "base_name=$($pkg.BaseName)" >> $env:GITHUB_OUTPUT
- name: Push to Frends Community Main Feed
shell: bash
run: |
curl -X POST "${{ secrets.COMMUNITY_TASKS_API }}?feed_type=main" \
-H "x-api-key: ${{ secrets.FRENDS_COMMUNITY_TASKS_API_KEY }}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${{ steps.package_name.outputs.full_name }}"