diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 234a8b3..4964530 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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 diff --git a/.github/workflows/rc.yml b/.github/workflows/rc.yml new file mode 100644 index 0000000..f3df66c --- /dev/null +++ b/.github/workflows/rc.yml @@ -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 \ No newline at end of file