diff --git a/.commitlintrc.yaml b/.commitlintrc.yaml new file mode 100644 index 0000000..5d2a5ab --- /dev/null +++ b/.commitlintrc.yaml @@ -0,0 +1,2 @@ +extends: + - "@open-turo/commitlint-config-conventional" diff --git a/.cz.json b/.cz.json new file mode 100644 index 0000000..03a5bc9 --- /dev/null +++ b/.cz.json @@ -0,0 +1,4 @@ +{ + "maxHeaderWidth": 72, + "path": "cz-conventional-changelog" +} diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml new file mode 100644 index 0000000..253bcb7 --- /dev/null +++ b/.github/dependabot.yaml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: daily diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..576eb96 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,22 @@ +name: CI + +on: + pull_request: + branches: [main] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: open-turo/actions-gha/lint@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: open-turo/actions-gha/test@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..0d4c92c --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + branches: [main] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - uses: open-turo/actions-gha/lint@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: open-turo/actions-gha/test@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + + release: + needs: + - lint + - test + name: Release + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: open-turo/actions-gha/release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..2e7b01d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,26 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 # Use the ref you want to point at + hooks: + - id: check-json + - id: check-yaml + - id: pretty-format-json + args: + - --autofix + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.5.1 + hooks: + - id: prettier + stages: [commit] + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook + rev: v8.0.0 + hooks: + - id: commitlint + stages: [commit-msg] + additional_dependencies: ["@open-turo/commitlint-config-conventional"] + - repo: https://github.com/rhysd/actionlint + rev: v1.6.8 + hooks: + - id: actionlint diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..df364cb --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,15 @@ +{ + "branches": [ + "main", + { + "channel": "next", + "name": "(f|b|c)/*", + "prerelease": "beta-<%= (/^\\w+-\\d+/.exec(name.substr(2)) || [])[0] %>" + } + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github" + ] +} diff --git a/README.md b/README.md index 71ace85..b52f888 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # actions-s3-artifact + GitHub Action: manage S3 artifacts in workflows + +Put docs here. diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..e69de29 diff --git a/download/action.yaml b/download/action.yaml new file mode 100644 index 0000000..e69de29 diff --git a/upload/action.yaml b/upload/action.yaml new file mode 100644 index 0000000..e69de29