-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up license guard, add license headers
- Loading branch information
Showing
16 changed files
with
147 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,30 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
# File format: see https://github.com/apache/skywalking-eyes/blob/main/test/testdata/.licenserc_language_config_test.yaml | ||
|
||
header: | ||
license: | ||
spdx-id: MPL-2.0 | ||
|
||
paths: | ||
- '**/*.rs' | ||
- '**/*.gd' | ||
- '**/*.sh' | ||
- '**/*.md' | ||
- '.github/**/*.yml' | ||
|
||
paths-ignore: | ||
- 'ReadMe.md' | ||
- '.github/ISSUE_TEMPLATE' | ||
|
||
comment: on-failure | ||
|
||
language: | ||
GDScript: | ||
extensions: ['.gd', '.sh'] | ||
comment_style_id: 'Hashtag' | ||
Rust: | ||
extensions: ['.rs'] | ||
comment_style_id: 'SlashAsterisk' |
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,8 +1,13 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
|
||
name: "Deploy to GitHub Pages" | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
|
||
env: | ||
# Use fixed versions for now, replace with 'latest' to auto-use latest | ||
|
@@ -14,12 +19,13 @@ env: | |
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
# contents: read | ||
contents: write | ||
pages: write | ||
id-token: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -48,9 +54,37 @@ jobs: | |
run: mdbook build | ||
|
||
- name: "Upload Pages artifact" | ||
if: github.ref == 'refs/heads/master' | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: book | ||
|
||
- name: "Deploy to GitHub Pages" | ||
if: github.ref == 'refs/heads/master' | ||
uses: actions/deploy-pages@v2 | ||
|
||
|
||
license-guard: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: "Check license headers" | ||
uses: apache/skywalking-eyes/[email protected] | ||
with: | ||
# log: debug # optional: set the log level. The default value is `info`. | ||
config: .github/other/licenserc.yml | ||
# token: # optional: the token that license eye uses when it needs to comment on the pull request. | ||
# Set to empty ("") to disable commenting on pull request. The default value is ${{ github.token }} | ||
# mode: # optional: Which mode License-Eye should be run in. Choices are `check` or `fix`. The default value is `check`. | ||
mode: check | ||
# mode: fix | ||
|
||
# - name: "Commit changes" | ||
# uses: EndBug/add-and-commit@v9 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# author_name: 'Godot-Rust Automation' | ||
# author_email: '[email protected]' | ||
# message: 'Auto-apply license headers' |
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
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
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
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
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
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
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