chore(deps): update rust crate chrono to v0.4.44 (#199) #294
This file contains hidden or 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
| name: CI | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - development | ||
| pull_request: | ||
| branches: | ||
| - 'master' | ||
| env: | ||
| CI: true | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| env: | ||
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| include: | ||
| - os: ubuntu-latest | ||
| target: x86_64-unknown-linux-gnu | ||
| - os: macos-latest | ||
| target: x86_64-apple-darwin | ||
| - os: windows-latest | ||
| target: x86_64-pc-windows-msvc | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: stable | ||
| target: ${{ matrix.target }} | ||
| - name: Build | ||
| run: cargo build --release --target ${{ matrix.target }} | ||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v6 | ||
| with: | ||
| name: doclytics-${{ env.BRANCH_NAME }}-${{ matrix.os }} | ||
| path: | | ||
| ./target/${{ matrix.target }}/release/doclytics${{ matrix.os == 'windows-latest' && '.exe' || '' }} | ||
| build-docker: | ||
| needs: build | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| packages: write | ||
| contents: read | ||
| env: | ||
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
| - name: Set up Docker Build | ||
| uses: docker/setup-buildx-action@v3 | ||
| - name: Login to Docker Registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
| password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
| - name: 'Login to GitHub Container Registry' | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{github.actor}} | ||
| password: ${{secrets.GITHUB_TOKEN}} | ||
| - name: Build and push to GitHub Container Registry | ||
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| push: true | ||
| tags: | | ||
| ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }} | ||
| bjoern5urban/doclytics:${{ env.BRANCH_NAME }} | ||
| platforms: linux/amd64,linux/arm64 | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| issues: write | ||
| pull-requests: write | ||
| if: ${{ github.ref }} == 'master' || ${{ github.ref }} == 'development' | ||
|
Check warning on line 88 in .github/workflows/push.yml
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| - name: Install dependencies | ||
| run: npm install -g semantic-release @saithodev/semantic-release-backmerge @semantic-release/github @semantic-release/exec | ||
| - name: Release | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.PAT }} | ||
| run: npx semantic-release --debug | ||