Skip to content

Commit

Permalink
ci: upload release artifacts as zip archives (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne4to authored Jan 29, 2024
1 parent 640f9e5 commit fcb457c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/native-aot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
# Most CI servers set it automatically.
CI: 'false'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4.0.0
with:
global-json-file: global.json
- uses: actions/setup-node@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
# Most CI servers set it automatically.
CI: 'false'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4.0.0
with:
global-json-file: global.json
- uses: actions/setup-node@v4
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
# Most CI servers set it automatically.
CI: 'false'
steps:
- uses: actions/checkout@v3
# https://github.com/marketplace/actions/checkout
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/setup-net-core-sdk
- name: Setup .NET
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4.0.0
with:
global-json-file: global.json
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -55,19 +57,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
# https://github.com/actions/download-artifact
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts
merge-multiple: true
merge-multiple: false
- name: Zip artifacts
working-directory: ./release-artifacts
run: for i in */; do zip -r "${i%/}.zip" -m "$i"; done
# https://github.com/softprops/action-gh-release
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
files: release-artifacts/**

# TODO try https://github.com/marketplace/actions/release-drafter

0 comments on commit fcb457c

Please sign in to comment.