diff --git a/ci/maven.yml b/ci/maven.yml index 923425b..1ae5d62 100644 --- a/ci/maven.yml +++ b/ci/maven.yml @@ -22,4 +22,4 @@ jobs: java-version: '11' distribution: 'adopt' - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn --batch-mode --update-snapshots verify diff --git a/ci/nix.yml b/ci/nix.yml new file mode 100644 index 0000000..b42fe3e --- /dev/null +++ b/ci/nix.yml @@ -0,0 +1,29 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +name: Nix + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.1 + - name: Install Nix + uses: cachix/install-nix-action@95a8068e317b8def9482980abe762f36c77ccc99 + - name: Install Cachix + - uses: cachix/cachix-action@490a246fbc7f92208d309eeb54383a4d828cedc1 + with: + # Once you generate a binary cache on https://app.cachix.org, you'll need to insert the name of the cache here + name: mycache + signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' + - name: Run nix-build + run: nix-build + - name: Check nix-shell works + run: nix-shell --run "echo OK" \ No newline at end of file diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 8462902..1efdc75 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -30,7 +30,7 @@ jobs: - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} publish-gpr: needs: build diff --git a/ci/properties/nix.properties.json b/ci/properties/nix.properties.json new file mode 100644 index 0000000..3a90d75 --- /dev/null +++ b/ci/properties/nix.properties.json @@ -0,0 +1,6 @@ +{ + "name": "Nix", + "description": "Build Nix project", + "iconName": "nix", + "categories": ["Nix"] +} diff --git a/ci/python-publish.yml b/ci/python-publish.yml index 3bfabfc..2ac1e53 100644 --- a/ci/python-publish.yml +++ b/ci/python-publish.yml @@ -26,11 +26,12 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + pip install setuptools wheel twine + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* diff --git a/icons/nix.svg b/icons/nix.svg new file mode 100644 index 0000000..9a70a14 --- /dev/null +++ b/icons/nix.svg @@ -0,0 +1,513 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + +