Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ jobs:
actions: write
steps:
- name: Clean artifacts
uses: amilochau/github-actions/clean/artifacts@v3
uses: amilochau/github-actions/clean/artifacts@v4
with:
runId: ${{ github.event.workflow_run.id }}
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
name: Create Release
runs-on: ubuntu-latest
environment: RELEASE
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up a GitHub Release
Expand All @@ -38,5 +40,4 @@ jobs:
versionMinor: ${{ github.event.inputs.versionMinor }}
versionPatch: ${{ github.event.inputs.versionPatch }}
versionUnstableSuffix: ${{ github.event.inputs.versionUnstableSuffix }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
avoidGitHubPrerelease: ${{ github.event.inputs.avoidGitHubPrerelease }}
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

You can find the new releases on the [GitHub releases page](https://github.com/amilochau/github-actions/releases).

Note: `amilochau/github-actions` removed actions to build Docker-based applications, and to deploy Azure resources (including Azure Functions, Azure Static Web Apps, Azure App Service, Azure Resource Manager templates). You can find again these actions using the [v3 tag](https://github.com/amilochau/github-actions/tree/v3).

---

## Actions
Expand All @@ -25,20 +27,15 @@ The following actions are proposed, and can be freely used:
| Path | Usage | Readme |
| ---- | ----- | ------ |
| `clean/artifacts` | Clean GitHub Actions artifacts | [README.md](./clean/artifacts/README.md) |
| `build/netcore` | Build and Test .NET projects | [README.md](./build/netcore/README.md) |
| `build/node` | Build and Test Node.js projects | [README.md](./build/node/README.md) |
| `build/docker` | Build a Docker application | [README.md](./build/docker/README.md) |
| `build/lambda-functions` | Build AWS Lambda functions | [README.md](./build/lambda-functions/README.md) |
| `build/terraform` | Build Terraform modules | [README.md](./build/terraform/README.md) |
| `deploy/functions` | Deploy Azure Functions applications | [README.md](./deploy/functions/README.md) |
| `deploy/infrastructure` | Deploy Azure infrastructure | [README.md](./deploy/infrastructure/README.md) |
| `deploy/static-web-apps` | Deploy Static Web Apps applications | [README.md](./deploy/static-web-apps/README.md) |
| `deploy/web` | Deploy Web applications | [README.md](./deploy/web/README.md) |
| `deploy/terraform` | Deploy Terraform-defined infrastructure | [README.md](./deploy/terraform/README.md) |
| `release/basic` | Create complete GitHub Releases with a simple process | [README.md](./release/basic/README.md) |
| `release/npm` | Release Node.js libraries as npm packages into npmjs.com and GitHub Packages | [README.md](./release/npm/README.md) |
| `release/nuget` | Release .NET libraries as NuGet packages into nuget.org and GitHub Packages | [README.md](./release/nuget/README.md) |

*Note that all actions must start with the prefix `amilochau/github-actions/`*
*Note that all actions start with the prefix `amilochau/github-actions/`.

---

Expand Down
55 changes: 0 additions & 55 deletions build/docker/README.md

This file was deleted.

50 changes: 0 additions & 50 deletions build/docker/action.yml

This file was deleted.

60 changes: 0 additions & 60 deletions build/docker/build-docker.ps1

This file was deleted.

2 changes: 1 addition & 1 deletion build/lambda-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build AWS Lambda functions
uses: amilochau/github-actions/build/lambda-functions@v3
uses: amilochau/github-actions/build/lambda-functions@v4
with:
solutionPath: './api/Functions.sln'
```
Expand Down
2 changes: 1 addition & 1 deletion build/netcore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build and test projects
uses: amilochau/github-actions/build/netcore@v3
uses: amilochau/github-actions/build/netcore@v4
with:
projectsToBuild: ${{ env.PROJECTS_BUILD }}
projectsToTest: ${{ env.PROJECTS_TESTS }}
Expand Down
23 changes: 9 additions & 14 deletions build/netcore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
required: true
dotnetVersion:
description: The .NET version to use
default: ''
default: '7.0.x'
verbosity:
description: The verbosity of the scripts
default: minimal
Expand All @@ -22,20 +22,15 @@ runs:
using: composite
steps:
- name: Setup .NET Core
if: ${{ inputs.dotnetVersion != '' }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ inputs.dotnetVersion }}
- name: Build .NET Core application with script
- name: Restore packages
shell: pwsh
run: ${{ github.action_path }}/build-netcore.ps1 `
-projectsToBuild ${{ inputs.projectsToBuild }} `
-projectsToTest ${{ inputs.projectsToTest }} `
-verbosity ${{ inputs.verbosity }}
- name: Upload artifact (compressed)
uses: actions/upload-artifact@v3
with:
name: build-netcore-compressed
path: ./output-compressed
if-no-files-found: error
retention-days: 1
run: dotnet restore ${{ inputs.projectsToBuild }} --verbosity ${{ inputs.VERBOSITY }}
- name: Build application
shell: pwsh
run: dotnet build ${{ inputs.projectsToBuild }} --configuration Release --no-restore --verbosity ${{ inputs.VERBOSITY }}
- name: Test application
shell: pwsh
run: dotnet test ${{ inputs.projectsToTest }} --configuration Release --no-restore --no-build --verbosity ${{ inputs.VERBOSITY }}
51 changes: 0 additions & 51 deletions build/netcore/build-netcore.ps1

This file was deleted.

13 changes: 5 additions & 8 deletions build/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,18 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build and test projects
uses: amilochau/github-actions/build/node@v3
with:
projectWorkspace: ${{ env.PROJECT_WORKSPACE }}
uses: amilochau/github-actions/build/node@v4
```

### Inputs

| Input | Description | Required | Default value | Comment |
| ----- | ----------- | -------- | ------------- | ------- |
| `projectWorkspace` | The path to the project to build | *false* | `.` |
| `nodeVersion` | The Node.js version to use | *false* | `16.x` |
| `npmBuildScript` | The npm script to run, to build the application | *false* | `build` |
| `npmLintScript` | The npm script to run, to lint the application | *false* | `lint` |
| `npmTestScript` | The npm script to run, to test the application | *false* | `test` |
| `relativeOutputPath` | The path to the output of the build project | *false* | `./dist` |
| `nodeVersion` | The Node.js version to use | *false* | `18.x` |
| `npmBuildCommand` | The npm command to run, to build the application | *false* | `build` |
| `npmLintCommand` | The npm command to run, to lint the application | *false* | `lint` |
| `npmTestCommand` | The npm command to run, to test the application | *false* | `test` |
| `verbosity` | The verbosity of the scripts | *false* | `minimal` | Set to `minimal`, `normal` or `detailed` |

### Outputs
Expand Down
Loading