Skip to content

Commit

Permalink
Delete docker, add Artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur committed Dec 3, 2024
1 parent a261a3a commit d3df311
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 47 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build-and-publish:
name: Build, Test and Publish Docker Image
name: Build and Publish Artifacts
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -37,25 +37,18 @@ jobs:
# - name: Run Clippy
# run: cargo clippy -r --all -- -D warnings

# - name: Prepare environment
# run: |
# mkdir -p target/tmp
# curl -L https://get.gear.rs/gear-v1.6.1-x86_64-unknown-linux-gnu.tar.xz -o - | tar xJ -C target/tmp
- name: Build project
run: cargo build --release --target wasm32-unknown-unknown

# - name: Run tests
# run: cargo test -r --all -- --ignored

- name: Build Docker image
- name: Prepare artifacts directory
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/wasm-artifacts:latest .
mkdir -p artifacts
cp target/wasm32-unknown-unknown/release/*.wasm artifacts/
cp target/wasm32-unknown-unknown/release/*.idl artifacts/
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v2
# Upload artifacts to GitHub Actions
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Docker image to GitHub Packages
run: |
docker push ghcr.io/${{ github.repository_owner }}/wasm-artifacts:latest
name: wasm-artifacts
path: artifacts/
28 changes: 0 additions & 28 deletions Dockerfile

This file was deleted.

0 comments on commit d3df311

Please sign in to comment.