Update package.yml #3
This file contains 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: Build and Deploy | |
on: | |
push: | |
branches: | |
- pipelinebuildpackage | |
pull_request: | |
branches: | |
- pipelinebuildpackage | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: List all files/directories in root | |
run: ls | |
- name: Delete pshproj files | |
run: find . -name '*.pshproj' -delete | |
- name: Delete pssproj files | |
run: find . -name '*.pssproj' -delete | |
- name: Copy files | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Microsoft.Xrm.Data.PowerShell | |
path: ${{ github.workspace }}/Microsoft.Xrm.Data.PowerShell | |
- name: PowerShell | |
run: | | |
# Write your PowerShell commands here. | |
echo ${{ github.workspace }}/Microsoft.Xrm.Data.PowerShell | |
ls ${{ github.workspace }}/Microsoft.Xrm.Data.PowerShell | |
#Publish-Module -NuGetApiKey $(GalleryKey) -Path ${{ github.workspace }}/Microsoft.Xrm.Data.PowerShell -verbose -whatif | |
working-directory: ${{ github.workspace }} | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: Microsoft.Xrm.Data.PowerShell | |
path: ${{ github.workspace }}/Microsoft.Xrm.Data.PowerShell | |
- name: Publish artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Microsoft.Xrm.Data.PowerShell | |
path: ${{ github.workspace }}/Microsoft.Xrm.Data.PowerShell |