From c0757cca5c29bda1f125d5f882e16ef670c7e26e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 10 Sep 2023 17:54:00 -0400 Subject: [PATCH] Created github action to lint code and publish a release --- .github/workflows/publish-release.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/publish-release.yml diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml new file mode 100644 index 0000000..1ad3353 --- /dev/null +++ b/.github/workflows/publish-release.yml @@ -0,0 +1,28 @@ +on: + push: + branches: + - main +jobs: + publish-release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper list of changed files within `super-linter` + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: "main" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release + id: create_release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false \ No newline at end of file