.gitea: fix upload artifacts action

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
fix/gitea-ci-artifacts
Manos Pitsidianakis 8 months ago
parent 3d85ca2edf
commit 712ce3099d
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -10,9 +10,14 @@ env:
on: on:
workflow_dispatch: workflow_dispatch:
pull_request:
paths:
- '.gitea/**'
push: push:
tags: tags:
- v* - v*
paths:
- '.gitea/**'
jobs: jobs:
build: build:
@ -29,7 +34,7 @@ jobs:
artifact_name: 'meli-linux-amd64' artifact_name: 'meli-linux-amd64'
target: x86_64-unknown-linux-gnu target: x86_64-unknown-linux-gnu
steps: steps:
- uses: https://github.com/actions/checkout@v2 - uses: actions/checkout@v2
- id: os-deps - id: os-deps
name: install OS dependencies name: install OS dependencies
run: | run: |
@ -37,7 +42,7 @@ jobs:
apt-get install -y libdbus-1-dev pkg-config mandoc libssl-dev apt-get install -y libdbus-1-dev pkg-config mandoc libssl-dev
#- id: cache-rustup #- id: cache-rustup
# name: Cache Rust toolchain # name: Cache Rust toolchain
# uses: https://github.com/actions/cache@v3 # uses: actions/cache@v3
# with: # with:
# path: ~/.rustup # path: ~/.rustup
# key: toolchain-${{ matrix.os }}-${{ matrix.rust }} # key: toolchain-${{ matrix.os }}-${{ matrix.rust }}
@ -78,7 +83,7 @@ jobs:
mv target/release/* target/ || true mv target/release/* target/ || true
mv target/meli artifacts/ mv target/meli artifacts/
- name: Upload Artifacts - name: Upload Artifacts
uses: https://github.com/actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.artifact_name }} name: ${{ matrix.artifact_name }}
path: artifacts path: artifacts

Loading…
Cancel
Save