-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
14 changed files
with
28,737 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @StephenHodgson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: validate | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
|
||
jobs: | ||
validate: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ macos-latest, windows-latest, ubuntu-latest ] | ||
|
||
steps: | ||
- name: checkout self | ||
uses: actions/checkout@v4 | ||
|
||
- name: RageAgainstThePixel/upm-config | ||
uses: ./ | ||
with: | ||
registry_url: ${{ secrets.UPM_REGISTRY_URL }} | ||
auth_token: ${{ secrets.UPM_AUTH_TOKEN }} | ||
|
||
- run: | | ||
# macOS and Linux '~/.upmconfig.toml' | ||
# windows '%USERPROFILE%\.upmconfig.toml' | ||
if [[ "$OSTYPE" == "msys" ]]; then | ||
upmconfig="$USERPROFILE\\.upmconfig.toml" | ||
else | ||
upmconfig="$HOME/.upmconfig.toml" | ||
fi | ||
if [[ ! -f "$upmconfig" ]]; then | ||
echo ".upmconfig.toml does not exist" | ||
exit 1 | ||
fi | ||
chmod +w "$upmconfig" | ||
rm "$upmconfig" | ||
shell: bash | ||
- name: RageAgainstThePixel/upm-config | ||
uses: ./ | ||
with: | ||
registry_url: ${{ secrets.UPM_REGISTRY_URL }} | ||
username: ${{ secrets.UPM_USERNAME }} | ||
password: ${{ secrets.UPM_PASSWORD }} | ||
|
||
- run: | | ||
# macOS and Linux '~/.upmconfig.toml' | ||
# windows '%USERPROFILE%\.upmconfig.toml' | ||
if [[ "$OSTYPE" == "msys" ]]; then | ||
upmconfig="$USERPROFILE\\.upmconfig.toml" | ||
else | ||
upmconfig="$HOME/.upmconfig.toml" | ||
fi | ||
if [[ ! -f "$upmconfig" ]]; then | ||
echo ".upmconfig.toml does not exist" | ||
exit 1 | ||
fi | ||
chmod +w "$upmconfig" | ||
rm "$upmconfig" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
# upm-config | ||
A GitHub action for setting Unity UPM private scoped registry configurations. | ||
|
||
A GitHub action for setting Unity UPM private scoped registry credentials. | ||
|
||
## How to use | ||
|
||
### workflow | ||
|
||
```yaml | ||
steps: | ||
- uses: RageAgainstThePixel/upm-config@v1 | ||
with: | ||
registry_url: 'http://upm.registry.com:4873' | ||
username: ${{ secrets.UPM_USERNAME }} | ||
password: ${{ secrets.UPM_PASSWORD }} | ||
|
||
``` | ||
|
||
### inputs | ||
|
||
| name | description | required | | ||
| ---- | ----------- | -------- | | ||
| registry_url | The URL of the private scoped registry. | true | | ||
| auth_token | The authentication token for the private scoped registry. | Required if username and password are not provided. | | ||
| username | The username for the private scoped registry. | Required if auth_token is not provided. | | ||
| password | The password for the private scoped registry. | Required if auth_token is not provided. | | ||
| always_auth | Whether to always authenticate with the private scoped registry. Defaults to true. | false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: 'upm-config' | ||
description: 'A GitHub action for setting Unity UPM private scoped registry configurations.' | ||
|
||
inputs: | ||
registry_url: | ||
description: 'The URL of the private scoped registry.' | ||
required: true | ||
auth_token: | ||
description: 'The authentication token for the private scoped registry. Required if username and password are not provided.' | ||
required: false | ||
username: | ||
description: 'The username for the private scoped registry. Required if auth_token is not provided.' | ||
required: false | ||
password: | ||
description: 'The password for the private scoped registry. Required if auth_token is not provided.' | ||
required: false | ||
always_auth: | ||
description: 'Whether to always authenticate with the private scoped registry. Defaults to true.' | ||
required: false | ||
default: 'true' | ||
|
||
runs: | ||
using: 'node20' | ||
main: 'dist/index.js' |
Oops, something went wrong.