Skip to content

Commit

Permalink
added github-actions to dependabot, test on push to main
Browse files Browse the repository at this point in the history
  • Loading branch information
danzuep committed Sep 22, 2023
1 parent f5df927 commit 619e503
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@

version: 2
updates:
# Maintain dependencies for nuget
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
# Disable future pull requests for GitHub Actions dependencies
open-pull-requests-limit: 1

# Maintain dependencies for NuGet
- package-ecosystem: "nuget"
directory: "/source"
schedule:
interval: "weekly"
# Disable future pull requests for nuget dependencies
interval: "monthly"
# Disable future pull requests for NuGet dependencies
open-pull-requests-limit: 1
48 changes: 48 additions & 0 deletions .github/workflows/rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: RC
run-name: Publish as a Release Canidate

on:
workflow_dispatch:
push:
branches:
- main
tags-ignore:
- '**'

# Cancel any other running workflows with the same ID
concurrency:
group: cd-rc-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
uses: ./.github/workflows/_build-test.yml
with:
environment: release
project-name: MailKitSimplified
configuration: Release
secrets: inherit

deploy:
needs: build
name: 🚀 MailKitSimplified
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
environment: release
env:
PACKAGE_NAME: 'MailKitSimplified.${{ needs.build.outputs.version }}.nupkg'

steps:
- name: Markdown workflow job summary
run: echo "### $PACKAGE_NAME package ready to be published" >> $GITHUB_STEP_SUMMARY

# - name: Download artifact from build job
# uses: actions/download-artifact@v3
# with:
# name: MailKitSimplified

# - name: Publish to NuGet using the .NET environment
# uses: actions/setup-dotnet@v3
# run: dotnet nuget push $PACKAGE_NAME --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 619e503

Please sign in to comment.