Skip to content

Commit

Permalink
Merge pull request #423 from 7474/update-publish-package
Browse files Browse the repository at this point in the history
Update Publish-Puckage.yml
  • Loading branch information
7474 committed Nov 14, 2021
2 parents a2f86d2 + aae6a6b commit 1557f50
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/Publish-Puckage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
dotnet-version: '6.0.x'

- run: dotnet publish SRC.Sharp/SRCSharpForm/SRCSharpForm.csproj -c Release -r win-x64 -p:PublishSingleFile=true --self-contained false
- run: rm SRC.Sharp/SRCSharpForm/bin/Release/net5.0-windows/win-x64/publish/*.pdb
- run: powershell Compress-Archive -Path SRC.Sharp/SRCSharpForm/bin/Release/net5.0-windows/win-x64/publish/ -DestinationPath SRCSharpForm.zip
- run: rm SRC.Sharp/SRCSharpForm/bin/Release/net6.0-windows/win-x64/publish/*.pdb
- run: powershell Compress-Archive -Path SRC.Sharp/SRCSharpForm/bin/Release/net6.0-windows/win-x64/publish/ -DestinationPath SRCSharpForm.zip

- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -42,34 +42,34 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Docker Hub 向けは Docker Hub でビルドする
# Docker Hub 向けは Docker Hub でビルドする、、、ことができなくなったのでビルドする
# https://hub.docker.com/repository/docker/koudenpa/srcdatalinter/builds
# push-to-dockerhub:
# name: Push Docker image to Docker Hub
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
push-to-dockerhub:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# - name: Set Tag name
# id: vars
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Set Tag name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: koudenpa
# password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: koudenpa
password: ${{ secrets.DOCKER_PASSWORD }}

# - name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: ./SRC.Sharp/
# file: ./SRC.Sharp/SRCDataLinter/Dockerfile
# push: true
# tags: koudenpa/srcdatalinter:latest,koudenpa/srcdatalinter:${{ steps.vars.outputs.tag }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: ./SRC.Sharp/
file: ./SRC.Sharp/SRCDataLinter/Dockerfile
push: true
tags: koudenpa/srcdatalinter:latest,koudenpa/srcdatalinter:${{ steps.vars.outputs.tag }}

0 comments on commit 1557f50

Please sign in to comment.